DataSharp/Mathematics/SetHelper.cs
/// <summary>
/// Throws ArgumentException if the count of the input set is less than the number of elements to be selected.
/// </summary>
/// <param name="setLength">The number of elements in the input set.</param>
/// <param name="numSelection">The number of elements in every subset to be generated.</param>
Throws ArgumentException if the count of the input set is less than the number of elements to be selected.
Throws ArgumentException if the count of the input set is less than the number of elements to be selected .
private static void LengthCheck(int setLength, int numSelection)
        {
            if (setLength < numSelection)
                throw new ArgumentException("The number of elements in the input set must be equal to or greater than the number of elements in its subset(s).");
        }
private static void LengthCheck ( int setLength , int numSelection ) { if ( setLength < numSelection ) throw new ArgumentException ( " " ) ; }
Throws ArgumentException if the count of the input set is less than the number of elements to be selected.
Throws ArgumentException if the count of the input set is less than the number of elements to be selected .
setLength
int
The number of elements in the input set.
The number of elements in the input set .
numSelection
int
The number of elements in every subset to be generated.
The number of elements in every subset to be generated .