C# Class SomeEnumHelperMethodsThatMakeDoingWhatYouWantEasier, code

Exibir arquivo Open project: shendongnian/code

Public Methods

Method Description
HasFlag ( Enum, variable, Enum, value ) : bool

Check to see if a flags enumeration has a specific flag set.

Include ( Enum, value, append ) : T,

Includes an enumerated type and returns the new value

IncludeAll ( Enum, value ) : T,
Remove ( Enum, value, remove ) : T,

Removes an enumerated type and returns the new value

Method Details

HasFlag() public static method

Check to see if a flags enumeration has a specific flag set.
public static HasFlag ( Enum, variable, Enum, value ) : bool
variable Enum, Flags enumeration to check
value Enum, Flag to check for
return bool

Include() public static method

Includes an enumerated type and returns the new value
public static Include ( Enum, value, append ) : T,
value Enum,
return T,

IncludeAll() public static method

public static IncludeAll ( Enum, value ) : T,
value Enum,
return T,

Remove() public static method

Removes an enumerated type and returns the new value
public static Remove ( Enum, value, remove ) : T,
value Enum,
return T,