Пример #1
0
 public static void ValidKeySizeUsesProperty()
 {
     using (AsymmetricAlgorithm aa = new DoesNotSetLegalKeySizesField())
     {
         // If the implementation relies on validating against the field
         // this will result in an exception.
         aa.KeySize = 1048576;
     }
 }
Пример #2
0
 public static void ValidKeySizeUsesProperty()
 {
     using (AsymmetricAlgorithm aa = new DoesNotSetLegalKeySizesField())
     {
         // If the implementation relies on validating against the field
         // this will result in an exception.
         aa.KeySize = 1048576;
     }
 }