C# Class Ardalis.SmartEnum.Core.SmartEnumWhen

Exibir arquivo Open project: ardalis/SmartEnum

Public Methods

Method Description
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().

Private Methods

Method Description
SmartEnumWhen ( bool stopEvaluating, ISmartEnum smartEnum ) : System

Method Details

Default() public method

Execute this action if no other calls to When have matched.
public Default ( Action action ) : void
action Action The Action to call.
return void

When() public method

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
return TValue>.SmartEnumThen

When() public method

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.
return TValue>.SmartEnumThen

When() public method

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.
return TValue>.SmartEnumThen