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.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
namespace Snippets | |
{ | |
/// <summary> | |
/// Mimicking .NET objects in memory. | |
/// </summary> | |
/// <remarks> |
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.Collections.Generic; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Snippets.Threading | |
{ | |
/// <summary> | |
/// Provides services for managing the queue of work items for a thread. | |
/// </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
/* | |
* Best practise thread start, stop, pause, resume and join. | |
* Example code at the end of the file. | |
*/ | |
using System; | |
using System.Globalization; | |
using System.Threading; | |
namespace Snippets.Threading |
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
||consent.google.* | |
||consent.youtube.* | |
||www.gstatic.*/youtube/img/promos/growth/dmod_si_horizontal_ver1_240x400.png^ | |
||policies.google.* | |
google.*##div#cnsw:remove() | |
google.*##div#swml:remove() | |
google.*##div#reviewDialog:remove() | |
google.*##div#lb:remove() |
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.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using System.Security; | |
namespace ProcessMemoryTest.Native | |
{ | |
[SuppressUnmanagedCodeSecurity] | |
public static unsafe class Kernel32 | |
{ |
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.Runtime.InteropServices; | |
namespace Data | |
{ | |
[StructLayout(LayoutKind.Explicit, Pack = 1)] | |
public struct PackedInteger | |
{ | |
/* | |
* Use cases: |
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.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
namespace Undocumented.Windows | |
{ | |
public static unsafe class MessageBox | |
{ | |
// http://undocumented.ntinternals.net/index.html?page=UserMode%2FUndocumented%20Functions%2FError%2FNtRaiseHardError.html | |
private static readonly delegate* unmanaged[Stdcall]<uint, uint, uint, uint*, uint, uint*, uint> _ntRaiseHardError; |
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; | |
namespace System.Input | |
{ | |
/// <summary> | |
/// An enumeration of all VirtualKeyCodes on Windows | |
/// </summary> | |
public enum VirtualKeyCode : int | |
{ | |
/// <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
using System; | |
using System.Buffers.Binary; | |
using System.Runtime.InteropServices; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Csgo | |
{ | |
public static class FriendCode | |
{ |
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
https://marketplace.visualstudio.com/items?itemName=josefpihrt.Roslynator2019 | |
https://marketplace.visualstudio.com/items?itemName=SteveCadwallader.CodeMaid | |
https://marketplace.visualstudio.com/items?itemName=TeamXavalon.XAMLStyler | |
https://marketplace.visualstudio.com/items?itemName=MichaelKissBG8.Supercharger | |
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.FileIcons | |
https://marketplace.visualstudio.com/items?itemName=EWoodruff.VisualStudioSpellCheckerVS2017andLater | |
https://marketplace.visualstudio.com/items?itemName=NikolayBalakin.Outputenhancer | |
https://marketplace.visualstudio.com/items?itemName=ironcev.sharpen |
NewerOlder