mscorlib(4.0.0.0) API with additions
LocalAppContextSwitches.cs
2 
3 namespace System
4 {
5  internal static class LocalAppContextSwitches
6  {
7  internal const string DontReliablyClonePrivateKeyStr = "Switch.System.Security.Cryptography.X509Certificates.RSACertificateExtensions.DontReliablyClonePrivateKey";
8 
9  private static int _dontReliablyClonePrivateKeyName;
10 
11  internal const string AesCryptoServiceProviderDontCorrectlyResetDecryptorStr = "Switch.System.Security.Cryptography.AesCryptoServiceProvider.DontCorrectlyResetDecryptor";
12 
13  private static int _aesCryptoServiceProviderDontCorrectlyResetDecryptorName;
14 
15  internal const string SymmetricCngAlwaysUseNCryptStr = "Switch.System.Security.Cryptography.SymmetricCng.AlwaysUseNCrypt";
16 
17  private static int _symmetricCngAlwaysUseNCryptName;
18 
19  public static bool DontReliablyClonePrivateKey
20  {
21  [MethodImpl(MethodImplOptions.AggressiveInlining)]
22  get
23  {
24  return System.LocalAppContext.GetCachedSwitchValue("Switch.System.Security.Cryptography.X509Certificates.RSACertificateExtensions.DontReliablyClonePrivateKey", ref _dontReliablyClonePrivateKeyName);
25  }
26  }
27 
28  public static bool AesCryptoServiceProviderDontCorrectlyResetDecryptor
29  {
30  [MethodImpl(MethodImplOptions.AggressiveInlining)]
31  get
32  {
33  return System.LocalAppContext.GetCachedSwitchValue("Switch.System.Security.Cryptography.AesCryptoServiceProvider.DontCorrectlyResetDecryptor", ref _aesCryptoServiceProviderDontCorrectlyResetDecryptorName);
34  }
35  }
36 
37  public static bool SymmetricCngAlwaysUseNCrypt
38  {
39  [MethodImpl(MethodImplOptions.AggressiveInlining)]
40  get
41  {
42  return System.LocalAppContext.GetCachedSwitchValue("Switch.System.Security.Cryptography.SymmetricCng.AlwaysUseNCrypt", ref _symmetricCngAlwaysUseNCryptName);
43  }
44  }
45  }
46 }
Definition: __Canon.cs:3
MethodImplOptions
Defines the details of how a method is implemented.