DataSharp/Mathematics/CombinationHelper.cs
/// <summary>
/// Throws ArgumentException if the count of input array is less than the number of elements to be selected.
/// </summary>
/// <param name="a">The array that contains all the candidate elements.</param>
/// <param name="numSelection">The number of elements to be extracted.</param>
Throws ArgumentException if the count of input array is less than the number of elements to be selected.
Throws ArgumentException if the count of input array is less than the number of elements to be selected .
private static void LengthCheck(int collectionLength, int numSelection)
        {
            if (collectionLength < numSelection)
                throw new ArgumentException("The number of elements in the input array must be equal to or greater than the number of elements to be selected.");
        }
private static void LengthCheck ( int collectionLength , int numSelection ) { if ( collectionLength < numSelection ) throw new ArgumentException ( " " ) ; }
Throws ArgumentException if the count of input array is less than the number of elements to be selected.
Throws ArgumentException if the count of input array is less than the number of elements to be selected .
collectionLength
int
numSelection
int
The number of elements to be extracted.
The number of elements to be extracted .
a
The array that contains all the candidate elements.
The array that contains all the candidate elements .