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
open System | |
open System.Threading | |
open System.Text | |
type IdGenerator<'a> private (chars: char seq, getTime: unit -> int64, transform: string -> 'a) = | |
let chars = | |
chars | |
|> Seq.distinct | |
|> Seq.toArray |
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.IO; | |
using System.Security.Cryptography; | |
using System.Security.Cryptography.X509Certificates; | |
namespace CryptoPlayground.StrongNameKeyManagement | |
{ | |
public class StrongNameKeyManager | |
{ | |
public StrongNameKeyManager(string containerName, bool machineScope = true) |
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.ConstrainedExecution; | |
using System.Runtime.InteropServices; | |
using System.Security; | |
using System.Security.Permissions; | |
using System.Security.Principal; | |
using Microsoft.Win32.SafeHandles; | |
namespace GitHub.Gists | |
{ |
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
/// <summary> | |
/// Generic extension. | |
/// </summary> | |
public static class GenericExtension | |
{ | |
/// <summary> | |
/// Read properties to key-value pair. | |
/// </summary> | |
/// <typeparam name="T">Class type.</typeparam> | |
/// <param name="obj">Object instance.</param> |