Class BucketRule<TElement, TValue>
A rule for Bucketizer<TElement, TValue>.
public class BucketRule<TElement, TValue>
Type Parameters
TElementTValue
- Inheritance
-
objectBucketRule<TElement, TValue>
- Extension Methods
Constructors
BucketRule(TValue, ICollection<TElement>)
A rule for Bucketizer<TElement, TValue>.
public BucketRule(TValue value, ICollection<TElement> bucket)
Parameters
valueTValueA value to compare with the result of the value retriever using object.Equals(object, object).
bucketICollection<TElement>The collection elements are added to if they match the
value.
Fields
Bucket
The collection elements are added to if they match the Value.
public readonly ICollection<TElement> Bucket
Field Value
- ICollection<TElement>
Value
A value to check elements against.
public readonly TValue Value
Field Value
- TValue