C# Class SomeEnumHelperMethodsThatMakeDoingWhatYouWantEasier, code

Afficher le fichier Open project: shendongnian/code

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

Include() public static méthode

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

IncludeAll() public static méthode

public static IncludeAll ( Enum, value ) : T,
value Enum,
Résultat T,

Remove() public static méthode

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