public sealed class CombinationCollection<T> : IMetaCollection<T>
Public NotInheritable Class CombinationCollection(Of T)
Implements IMetaCollection(Of T)
Dim instance As CombinationCollection(Of T)
generic<typename T>
public ref class CombinationCollection sealed : IMetaCollection<T>
[<SealedAttribute>]
type CombinationCollection<'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 combinations As New CombinationCollection(Of String)({"a", "b", "c"}, 3, MetaCollectionType.WithRepetition)
For Each combination As List(Of String) In combinations
Console.WriteLine(String.Join(", ", combination))
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.
CombinationCollectionT(IListT, Int32) | Initializes a new instance of the CombinationCollectionT class. Create a combination set from the provided list of values. The upper index is calculated as values.Count, the lower index is user specified. Collection type defaults to WithoutRepetition |
CombinationCollectionT(IListT, Int32, MetaCollectionType) | Initializes a new instance of the CombinationCollectionT class. Create a combination set from the provided list of values. The upper index is calculated as values.Count, the lower index is user specified. |
Count | Gets the number of unique combinations that are defined in this meta-collection. This value is mathematically defined as Choose(M, N) where M is the set size and N is the subset size. This is, M! / (N! * (M-N)!). |
LowerIndex | Gets the lower index of the meta-collection, equal to the number of items returned each iteration. |
Type | Gets the type of Combinations set that is generated. |
UpperIndex | Gets 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 combinations. |
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) |