C# 클래스 Ardalis.SmartEnum.Core.SmartEnumWhen

파일 보기 프로젝트 열기: ardalis/SmartEnum

공개 메소드들

메소드 설명
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