/// <summary> /// Throws an <see cref="System.InvalidOperationException"/> if the given argument value /// does not exist 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 allowed values.</param> /// <param name="argName">The argument name.</param> public static void In <T>(T argValue, IEnumerable <T> allowed, string argName) { Insist.In(argValue, allowed, argName, null); }