Table of Contents

Class BucketRule<TElement, TValue>

Namespace
NanoByte.Common.Dispatch
Assembly
NanoByte.Common.dll
public class BucketRule<TElement, TValue>

Type Parameters

TElement
TValue
Inheritance
object
BucketRule<TElement, TValue>
Extension Methods

Constructors

BucketRule(TValue, ICollection<TElement>)

public BucketRule(TValue value, ICollection<TElement> bucket)

Parameters

value TValue

A 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