This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
C local = null; | |
if (local != null && local.Prop) | |
{ | |
Console.WriteLine(local.ToString()); // Null ref on this line | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Biohazrd; | |
using Microsoft.VisualStudio.Setup.Configuration; | |
using Microsoft.Win32; | |
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
namespace InfectedWin32.Generator | |
{ | |
/// <summary>This class helps configure Biohazrd to include a specific version of the Windows SDK and reference files from it</summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/LiteDB/Mapper/BsonMapper.cs b/LiteDB/Mapper/BsonMapper.cs | |
index 91a7920e..c6dfee9a 100644 | |
--- a/LiteDB/Mapper/BsonMapper.cs | |
+++ b/LiteDB/Mapper/BsonMapper.cs | |
@@ -389,11 +389,11 @@ namespace LiteDB | |
/// </summary> | |
private static void RegisterDbRefItem(BsonMapper mapper, MemberMapper member, string collection) | |
{ | |
- // get entity | |
- var entity = mapper.GetEntityMapper(member.DataType); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//---------------------------------------------------------------------------------- | |
// Copyright (c) 2018 David Maas | |
// | |
// Permission to use, copy, modify, and/or distribute this software for any purpose | |
// with or without fee is hereby granted. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND | |
// FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Irrlicht.h> | |
#include <iostream> | |
using namespace irr; | |
using namespace irr::core; | |
using namespace irr::scene; | |
using namespace irr::video; | |
using namespace std; | |
int main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Fody; | |
using Mono.Cecil; | |
using Mono.Cecil.Cil; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Evil.Fody | |
{ | |
public class ModuleWeaver : BaseModuleWeaver | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SharpYaml; | |
using SharpYaml.Events; | |
using SharpYaml.Serialization; | |
using SharpYaml.Serialization.Descriptors; | |
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Runtime.Serialization; | |
namespace YamlPlayground |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void tsk_switch_handler() | |
{ | |
tm_current_slice--; //609 | |
if (tm_current_slice == 0) //610 | |
{ | |
//Timeslice exhausted, switch to another thread as long as we can get access to the kernel critical section... | |
if (kernel_critical_section) //612, 613 | |
{ | |
//Thread is in kernel critical section, so we give the thread | |
//some extra time to leave it. (We can't do anything until it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======= Display Device 0 ======= | |
DeviceName: \\.\DISPLAY1 | |
DeviceString: AMD Radeon HD 7800 Series | |
StateFlags: ACTIVE | |
DeviceID: PCI\VEN_1002&DEV_6819&SUBSYS_E221174B&REV_00 | |
Total display modes: 95 | |
======= Display Device 0,0 ======= | |
DeviceName: \\.\DISPLAY1\Monitor0 | |
DeviceString: Generic PnP Monitor | |
StateFlags: ACTIVE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <stdio.h> | |
void PrintDisplayDevice(DISPLAY_DEVICEA* displayDevice, const char* indent = "") | |
{ | |
printf("%sDeviceName: %s\n", indent, displayDevice->DeviceName); | |
printf("%sDeviceString: %s\n", indent, displayDevice->DeviceString); | |
printf("%sStateFlags:", indent); | |
if (displayDevice->StateFlags & DISPLAY_DEVICE_ACTIVE) { printf(" ACTIVE"); } | |
if (displayDevice->StateFlags & DISPLAY_DEVICE_MIRRORING_DRIVER) { printf(" MIRRORING_DRIVER"); } |
NewerOlder