This file contains hidden or 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 System.Runtime.InteropServices | |
| { | |
| [AttributeUsage(AttributeTargets.Method)] | |
| public sealed class NativeCallableAttribute : Attribute | |
| { | |
| public string EntryPoint; | |
| public CallingConvention CallingConvention; |
This file contains hidden or 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
| [MethodImpl(MethodImplOptions.AggressiveInlining)] | |
| private static bool IsUrlSafeChar(char ch) | |
| { | |
| /* | |
| if (ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z' || ch >= '0' && ch <= '9') | |
| return true; | |
| switch (ch) | |
| { | |
| case '-': |
This file contains hidden or 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.Threading; | |
| class Program | |
| { | |
| static void Work() | |
| { | |
| ManagedThreadId.Current.ToString(); | |
| } |
This file contains hidden or 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.IO; | |
| using System.Reflection.PortableExecutable; | |
| using System.Security.Cryptography; | |
| using System.Runtime.InteropServices; | |
| using System.Collections.Immutable; | |
| static class ImmutableArrayHelpers | |
| { | |
| // Avoid unnecessary copy |
NewerOlder