UtilCombinatoricsPermuteCharacters Method

Generates all the permutations of the specified string-length using the given character set.

Definition

Namespace: DevCase.Core.Math.Combinatorics
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IEnumerable<string> PermuteCharacters(
	IEnumerable<char> charSet,
	int length,
	bool allowRepetition
)

Parameters

charSet  IEnumerableChar
The character set.
length  Int32
The permuation length.
allowRepetition  Boolean
If set to , character repetition is allowed when generating the permutations.

Return Value

IEnumerableString
An IEnumerableT that contains the resulting permutations.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentException Char-set contains duplicated characters.;charSet

See Also