C# Класс Ardalis.SmartEnum.Core.SmartEnumWhen

Показать файл Открыть проект

Открытые методы

Метод Описание
Default ( Action action ) : void

Execute this action if no other calls to When have matched.

When ( ) : TValue>.SmartEnumThen

When this instance is one of the specified SmartEnum{TEnum, TValue} parameters. Execute the action in the subsequent call to Then().

When ( IEnumerable smartEnums ) : TValue>.SmartEnumThen

When this instance is one of the specified SmartEnum{TEnum, TValue} parameters. Execute the action in the subsequent call to Then().

When ( ISmartEnum smartEnumWhen ) : TValue>.SmartEnumThen

When this instance is one of the specified SmartEnum{TEnum, TValue} parameters. Execute the action in the subsequent call to Then().

Приватные методы

Метод Описание
SmartEnumWhen ( bool stopEvaluating, ISmartEnum smartEnum ) : System

Описание методов

Default() публичный Метод

Execute this action if no other calls to When have matched.
public Default ( Action action ) : void
action Action The Action to call.
Результат void

When() публичный Метод

When this instance is one of the specified SmartEnum{TEnum, TValue} parameters. Execute the action in the subsequent call to Then().
public When ( ) : TValue>.SmartEnumThen
Результат TValue>.SmartEnumThen

When() публичный Метод

When this instance is one of the specified SmartEnum{TEnum, TValue} parameters. Execute the action in the subsequent call to Then().
public When ( IEnumerable smartEnums ) : TValue>.SmartEnumThen
smartEnums IEnumerable A collection of values to compare to this instance.
Результат TValue>.SmartEnumThen

When() публичный Метод

When this instance is one of the specified SmartEnum{TEnum, TValue} parameters. Execute the action in the subsequent call to Then().
public When ( ISmartEnum smartEnumWhen ) : TValue>.SmartEnumThen
smartEnumWhen ISmartEnum A collection of values to compare to this instance.
Результат TValue>.SmartEnumThen