Table of Contents

Struct SetFilter<T>

Namespace
MassiveDotNet
Assembly
MassiveDotNet.dll

A filter over a field that accepts membership in a set: an exact value, or any of several.

public readonly struct SetFilter<T>

Type Parameters

T

The field's element type.

Inherited Members

Remarks

Build one with AnyOf<T>(params T[]), or pass a plain T where a filter is expected: it converts implicitly to an equality filter. An unset filter (default) renders nothing, exactly like a null parameter.

Operators

implicit operator SetFilter<T>(T?)

Converts a value to an equality filter: field=value.

public static implicit operator SetFilter<T>(T? value)

Parameters

value T

The exact value to match, or null to produce an unset filter that renders nothing.

Returns

SetFilter<T>

Remarks

The parameter is annotated T? rather than T. For this unconstrained type parameter that is annotation-only: a reference-type T may be null, while a value-type T is unaffected -- there is no Nullable<T> wrapping. The annotation states what this operator actually does: a null reference, such as a string? ticker = null variable passed where a filter is expected, converts to an unset filter instead of throwing ArgumentNullException naming a parameter (value) the caller never wrote, matching every other optional parameter in this SDK.