예제 #1
0
 public static void Validate(PatchKeyMode value, string parameterName)
 {
     if (!IsDefined(value))
     {
         throw Error.InvalidEnumArgument(parameterName, (int)value, typeof(PatchKeyMode));
     }
 }
예제 #2
0
 public static void Validate(PatchKeyMode value, string parameterName)
 {
     if (!IsDefined(value))
     {
         throw Error.InvalidEnumArgument(parameterName, (int)value, typeof(PatchKeyMode));
     }
 }
예제 #3
0
 public static bool IsDefined(PatchKeyMode patchKeyMode)
 {
     return(patchKeyMode == PatchKeyMode.Ignore ||
            patchKeyMode == PatchKeyMode.Patch ||
            patchKeyMode == PatchKeyMode.Throw);
 }
예제 #4
0
 public static bool IsDefined(PatchKeyMode patchKeyMode)
 {
     return patchKeyMode == PatchKeyMode.Ignore ||
         patchKeyMode == PatchKeyMode.Patch ||
         patchKeyMode == PatchKeyMode.Throw;
 }