public sealed class PermutationCollection<T> : IMetaCollection<T>
Public NotInheritable Class PermutationCollection(Of T)
Implements IMetaCollection(Of T)
Dim instance As PermutationCollection(Of T)
generic<typename T>
public ref class PermutationCollection sealed : IMetaCollection<T>
[<SealedAttribute>]
type PermutationCollection<'T> =
class
interface IMetaCollection<'T>
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Dim permutations As New PermutationCollection(Of String)({"a", "b", "c"}, MetaCollectionType.WithoutRepetition)
For Each permutation As List(Of String) In permutations
Console.WriteLine(String.Join(", ", permutation))
Next permutation
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
PermutationCollectionT(IListT) | Initializes a new instance of the PermutationCollectionT class. Create a permutation set from the provided list of values. The values T must implement IComparable. If T does not implement IComparable use a constructor with an explict IComparer. The repetition type defaults to WithoutRepetition |
PermutationCollectionT(IListT, MetaCollectionType) | Initializes a new instance of the PermutationCollectionT class. Create a permutation set from the provided list of values. If type is WithoutRepetition, then values (T) must implement IComparable. If T does not implement IComparable use a constructor with an explict IComparer. |
PermutationCollectionT(IListT, IComparerT) | Initializes a new instance of the PermutationCollectionT class. Create a permutation set from the provided list of values. The values will be compared using the supplied IComparer. The repetition type defaults to WithoutRepetition |
Count | The count of all permutations that will be returned. If type is WithoutRepetition, then this does not double count permutations with multiple identical values. I.e. count of permutations of "AAB" will be 3 instead of 6. If type is WithRepetition, then this is all combinations and is therefore N!, where N is the number of values. |
LowerIndex | The lower index of the meta-collection, equal to the number of items returned each iteration. For Permutation, this is always equal to the UpperIndex. |
Type | The type of Permutations set that is generated. |
UpperIndex | The upper index of the meta-collection, equal to the number of items in the initial set. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator | Gets an enumerator for collecting the list of permutations. |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |