Table of Contents

Class BucketRule<T>

Namespace
NanoByte.Common.Dispatch
Assembly
NanoByte.Common.dll

A rule for Bucketizer<T>.

public class BucketRule<T>

Type Parameters

T
Inheritance
object
BucketRule<T>
Extension Methods

Constructors

BucketRule(Predicate<T>, ICollection<T>)

A rule for Bucketizer<T>.

public BucketRule(Predicate<T> predicate, ICollection<T> bucket)

Parameters

predicate Predicate<T>

A condition to check elements against.

bucket ICollection<T>

The collection elements are added to if they match the predicate.

Fields

Bucket

The collection elements are added to if they match the Predicate.

public readonly ICollection<T> Bucket

Field Value

ICollection<T>

Predicate

A condition to check elements against.

public readonly Predicate<T> Predicate

Field Value

Predicate<T>