Метод | Описание | |
---|---|---|
CombineFlags ( |
Combines all of the flags of flags.
|
|
CombineFlags ( |
Combines the flags of value and otherFlags. Equivalent to the bitwise "or" operation.
|
|
CommonFlags ( |
Returns value with only the flags that are also in otherFlags. Equivalent to the bitwise "and" operation.
|
|
FormatFlags ( |
Retrieves the names of value's flags delimited with commas or if empty returns the name of the zero flag if defined otherwise "0". If value is not a valid flag combination
|
|
FormatFlags ( |
Retrieves the names of value's flags delimited with delimiter or if empty returns the name of the zero flag if defined otherwise "0". If value is not a valid flag combination
|
|
GetAllFlags ( |
Retrieves all the flags defined by enumType.
|
|
GetFlagMembers ( |
Retrieves the EnumMember{TEnum}s of the flags that compose value.
|
|
GetFlagMembers ( this member ) : IEnumerable |
Retrieves the EnumMembers of the flags that compose member's value.
|
|
GetFlags ( Type enumType, object value ) : IEnumerable |
Retrieves the flags that compose value.
|
|
GetFlags ( this member ) : IEnumerable |
Retrieves the flags that compose member's value.
|
|
HasAllFlags ( Type enumType, object value ) : bool |
Indicates if value has all of the flags that are defined in enumType.
|
|
HasAllFlags ( Type enumType, object value, object otherFlags ) : bool |
Indicates if value has all of the flags that are in otherFlags.
|
|
HasAnyFlags ( Type enumType, object value ) : bool |
Indicates if value has any flags.
|
|
HasAnyFlags ( Type enumType, object value, object otherFlags ) : bool |
Indicates if value has any flags that are in otherFlags.
|
|
IsFlagEnum ( Type enumType ) : bool |
Indicates if enumType is marked with the FlagsAttribute.
|
|
IsValidFlagCombination ( Type enumType, object value ) : bool |
Indicates whether value is a valid flag combination of enumType's defined flags.
|
|
ParseFlags ( Type enumType, string value ) : object |
Converts the string representation of one or more member names or values of enumType to its respective value of type enumType.
|
|
ParseFlags ( Type enumType, string value, bool ignoreCase ) : object |
Converts the string representation of one or more member names or values of enumType to its respective value of type enumType. The parameter ignoreCase specifies if the operation is case-insensitive.
|
|
ParseFlags ( Type enumType, string value, bool ignoreCase, string delimiter ) : object |
Converts the string representation of one or more member names or values of enumType delimited with delimiter to its respective value of type enumType. The parameter ignoreCase specifies if the operation is case-insensitive.
|
|
ParseFlags ( Type enumType, string value, string delimiter ) : object |
Converts the string representation of one or more member names or values of enumType delimited with delimiter to its respective value of type enumType.
|
|
RemoveFlags ( Type enumType, object value, object otherFlags ) : object |
Returns value without the flags specified in otherFlags.
|
|
ToggleFlags ( Type enumType, object value ) : object |
Returns value with all of it's flags toggled. Equivalent to the bitwise "xor" operator with GetAllFlags(Type).
|
|
ToggleFlags ( Type enumType, object value, object otherFlags ) : object |
Returns value while toggling the flags that are in otherFlags. Equivalent to the bitwise "xor" operator.
|
|
TryParseFlags ( Type enumType, string value, bool ignoreCase, object &result ) : bool |
Tries to convert the string representation of one or more member names or values of enumType to its respective value of type enumType. The parameter ignoreCase specifies whether the operation is case-insensitive. The return value indicates whether the conversion succeeded.
|
|
TryParseFlags ( Type enumType, string value, bool ignoreCase, string delimiter, object &result ) : bool |
Tries to convert the string representation of one or more member names or values of enumType delimited with delimiter to its respective value of type enumType. The parameter ignoreCase specifies whether the operation is case-insensitive. The return value indicates whether the conversion succeeded.
|
|
TryParseFlags ( Type enumType, string value, object &result ) : bool |
Tries to convert the string representation of one or more member names or values of enumType to its respective value of type enumType. The return value indicates whether the conversion succeeded.
|
|
TryParseFlags ( Type enumType, string value, string delimiter, object &result ) : bool |
Tries to convert the string representation of one or more member names or values of enumType delimited with delimiter to its respective value of type enumType. The return value indicates whether the conversion succeeded.
|
public static CombineFlags ( |
||
enumType | The enum type. | |
Результат | object |
public static CombineFlags ( |
||
enumType | The enum type. | |
value | object | The flags enum value. |
otherFlags | object | The other flags enum value. |
Результат | object |
public static CommonFlags ( |
||
enumType | The enum type. | |
value | object | The flags enum value. |
otherFlags | object | The other flags enum value. |
Результат | object |
public static FormatFlags ( |
||
enumType | The enum type. | |
value | object | The flags enum value. |
Результат | string |
public static FormatFlags ( |
||
enumType | The enum type. | |
value | object | The flags enum value. |
delimiter | string | The delimiter to use to separate individual flags. |
Результат | string |
public static GetAllFlags ( |
||
enumType | The enum type. | |
Результат | object |
public static GetFlagMembers ( |
||
enumType | The enum type. | |
value | object | The flags enum value. |
Результат | IEnumerable |
public static GetFlagMembers ( this member ) : IEnumerable |
||
member | this | The enum member. |
Результат | IEnumerable |
public static GetFlags ( Type enumType, object value ) : IEnumerable | ||
enumType | Type | The enum type. |
value | object | The flags enum value. |
Результат | IEnumerable |
public static GetFlags ( this member ) : IEnumerable | ||
member | this | The enum member. |
Результат | IEnumerable |
public static HasAllFlags ( Type enumType, object value ) : bool | ||
enumType | Type | The enum type. |
value | object | The flags enum value. |
Результат | bool |
public static HasAllFlags ( Type enumType, object value, object otherFlags ) : bool | ||
enumType | Type | The enum type. |
value | object | The flags enum value. |
otherFlags | object | The other flags enum value. |
Результат | bool |
public static HasAnyFlags ( Type enumType, object value ) : bool | ||
enumType | Type | The enum type. |
value | object | The flags enum value. |
Результат | bool |
public static HasAnyFlags ( Type enumType, object value, object otherFlags ) : bool | ||
enumType | Type | The enum type. |
value | object | The flags enum value. |
otherFlags | object | The other flags enum value. |
Результат | bool |
public static IsFlagEnum ( Type enumType ) : bool | ||
enumType | Type | The enum type. |
Результат | bool |
public static IsValidFlagCombination ( Type enumType, object value ) : bool | ||
enumType | Type | The enum type. |
value | object | The flags enum value. |
Результат | bool |
public static ParseFlags ( Type enumType, string value ) : object | ||
enumType | Type | The enum type. |
value | string | The enum member names or values' string representation. |
Результат | object |
public static ParseFlags ( Type enumType, string value, bool ignoreCase ) : object | ||
enumType | Type | The enum type. |
value | string | The enum member names or values' string representation. |
ignoreCase | bool | Indicates if the operation is case-insensitive. |
Результат | object |
public static ParseFlags ( Type enumType, string value, bool ignoreCase, string delimiter ) : object | ||
enumType | Type | The enum type. |
value | string | The enum member names or values' string representation. |
ignoreCase | bool | Indicates if the operation is case-insensitive. |
delimiter | string | The delimiter used to separate individual flags. |
Результат | object |
public static ParseFlags ( Type enumType, string value, string delimiter ) : object | ||
enumType | Type | The enum type. |
value | string | The enum member names or values' string representation. |
delimiter | string | The delimiter used to separate individual flags. |
Результат | object |
public static RemoveFlags ( Type enumType, object value, object otherFlags ) : object | ||
enumType | Type | The enum type. |
value | object | The flags enum value. |
otherFlags | object | The other flags enum value. |
Результат | object |
public static ToggleFlags ( Type enumType, object value ) : object | ||
enumType | Type | The enum type. |
value | object | The flags enum value. |
Результат | object |
public static ToggleFlags ( Type enumType, object value, object otherFlags ) : object | ||
enumType | Type | The enum type. |
value | object | The flags enum value. |
otherFlags | object | The other flags enum value. |
Результат | object |
public static TryParseFlags ( Type enumType, string value, bool ignoreCase, object &result ) : bool | ||
enumType | Type | The enum type. |
value | string | The enum member names or values' string representation. |
ignoreCase | bool | Indicates if the operation is case-insensitive. |
result | object | If the conversion succeeds this contains a value of type |
Результат | bool |
public static TryParseFlags ( Type enumType, string value, bool ignoreCase, string delimiter, object &result ) : bool | ||
enumType | Type | The enum type. |
value | string | The enum member names or values' string representation. |
ignoreCase | bool | Indicates if the operation is case-insensitive. |
delimiter | string | The delimiter used to separate individual flags. |
result | object | If the conversion succeeds this contains a value of type |
Результат | bool |
public static TryParseFlags ( Type enumType, string value, object &result ) : bool | ||
enumType | Type | The enum type. |
value | string | The enum member names or values' string representation. |
result | object | If the conversion succeeds this contains a value of type |
Результат | bool |
public static TryParseFlags ( Type enumType, string value, string delimiter, object &result ) : bool | ||
enumType | Type | The enum type. |
value | string | The enum member names or values' string representation. |
delimiter | string | The delimiter used to separate individual flags. |
result | object | If the conversion succeeds this contains a value of type |
Результат | bool |