OneOf(T[]) Method

Definition

Assembly XenoAtom.CommandLine.dll

Validates that a value is one of the provided allowed values.

public static OptionValidator<T> OneOf<T>(params T[] allowedValues)
    where T : IEquatable<T>

Type parameters

T

Parameters

allowedValues
{T}[]

Returns