Beispiel #1
0
 internal static void Validate(ProtectionLevel value)
 {
     if (!ProtectionLevelHelper.IsDefined(value))
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(ProtectionLevel)));
     }
 }
Beispiel #2
0
 internal static ProtectionLevel Max(ProtectionLevel v1, ProtectionLevel v2)
 {
     if (!ProtectionLevelHelper.IsStronger(v1, v2))
     {
         return(v2);
     }
     return(v1);
 }