 | CondensedCollectionT Constructor (Int32, IEqualityComparerT, PredicateCondensedStats, IEnumerableT) |
[This is preliminary documentation and is subject to change.]
Namespace:
Condensed
Assembly:
Condensed (in Condensed.dll) Version: 0.1.0.0 (0.1.0.0)
Syntaxpublic CondensedCollection(
int capacity = 0,
IEqualityComparer<T> comparer = null,
Predicate<CondensedStats> cutoverPredicate = null,
IEnumerable<T> collection = null
)
Public Sub New (
Optional capacity As Integer = 0,
Optional comparer As IEqualityComparer(Of T) = Nothing,
Optional cutoverPredicate As Predicate(Of CondensedStats) = Nothing,
Optional collection As IEnumerable(Of T) = Nothing
)
public:
CondensedCollection(
int capacity = 0,
IEqualityComparer<T>^ comparer = nullptr,
Predicate<CondensedStats>^ cutoverPredicate = nullptr,
IEnumerable<T>^ collection = nullptr
)
new :
?capacity : int *
?comparer : IEqualityComparer<'T> *
?cutoverPredicate : Predicate<CondensedStats> *
?collection : IEnumerable<'T>
(* Defaults:
let _capacity = defaultArg capacity 0
let _comparer = defaultArg comparer null
let _cutoverPredicate = defaultArg cutoverPredicate null
let _collection = defaultArg collection null
*)
-> CondensedCollectionParameters
- capacity (Optional)
- Type: SystemInt32
The number of elements that the new list can initially store. - comparer (Optional)
- Type: System.Collections.GenericIEqualityComparerT
The IEqualityComparerT implementation to use when comparing elements, or null to use the default IEqualityComparerT for the type of the object. - cutoverPredicate (Optional)
- Type: SystemPredicateCondensedStats
A callback used to decide when a CondensedCollection should stop attempting to perform deduplication and store values directly. If null or unspecified, the collection will never cutover. - collection (Optional)
- Type: System.Collections.GenericIEnumerableT
The collection whose elements are copied to the new CondensedCollectionT, or null to create an empty collection.
See Also