Class BucketRule<TElement, TValue>
A rule for Bucketizer<TElement, TValue>.
public class BucketRule<TElement, TValue>
Type Parameters
TElement
TValue
- 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
value
TValueA value to compare with the result of the value retriever using object.Equals(object, object).
bucket
ICollection<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