Class BucketRule<T>
A rule for Bucketizer<T>.
Namespace: NanoByte.Common.Dispatch
Assembly: NanoByte.Common.dll
Syntax
public class BucketRule<T> : Object
Type Parameters
Name | Description |
---|---|
T |
Constructors
BucketRule(Predicate<T>, ICollection<T>)
A rule for Bucketizer<T>.
Declaration
public BucketRule(Predicate<T> predicate, ICollection<T> bucket)
Parameters
Type | Name | Description |
---|---|---|
Predicate<T> | predicate | A condition to check elements against. |
ICollection<T> | bucket | The collection elements are added to if they match the |
Fields
Bucket
The collection elements are added to if they match the Predicate.
Declaration
public readonly ICollection<T> Bucket
Field Value
Type | Description |
---|---|
ICollection<T> |
Predicate
A condition to check elements against.
Declaration
public readonly Predicate<T> Predicate
Field Value
Type | Description |
---|---|
Predicate<T> |