Esempio n. 1
0
 /// <summary>
 ///  Throws an <see cref="System.InvalidOperationException"/> if the given argument value
 ///  exists in the collection provided.
 /// </summary>
 /// <typeparam name="T">The type of the argument.</typeparam>
 /// <param name="argValue">The argument value.</param>
 /// <param name="disallowed">The collection of disallowed values.</param>
 /// <param name="argName">The argument name.</param>
 public static void NotIn <T>(T argValue, IEnumerable <T> disallowed, string argName)
 {
     Insist.NotIn(argValue, disallowed, argName, null);
 }