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