Method | Description | |
---|---|---|
AsString ( |
Converts the specified value to its string representation.
|
|
AsString ( |
Converts the specified value to its string representation using the specified format.
|
|
AsString ( |
Converts the specified value to its string representation using the specified formats.
|
|
AsString ( |
Converts the specified value to its string representation using the specified formats.
|
|
AsString ( |
Converts the specified value to its string representation using the specified format.
|
|
CompareTo ( |
Compares value to other for ordering.
|
|
Equals ( |
Indicates if value equals other.
|
|
Format ( |
Converts the specified value to its string representation using the specified formats.
|
|
Format ( |
Converts the specified value to its string representation using the specified format.
|
|
GetMember ( |
Retrieves an enum member with the specified value if defined otherwise
|
|
GetMember ( |
Retrieves the enum member with the specified name if defined otherwise
|
|
GetMember ( |
Retrieves the enum member with the specified name if defined otherwise
|
|
GetMemberCount ( |
Retrieves enumType's member count.
|
|
GetMemberCount ( |
Retrieves enumType's member count. The parameter selection indicates what members to include.
|
|
GetMembers ( |
Retrieves enumType's members in increasing value order.
|
|
GetMembers ( |
Retrieves enumType's members in increasing value order. The parameter selection indicates what members to include.
|
|
GetName ( |
Retrieves value's enum member name if defined otherwise
|
|
GetNames ( |
Retrieves enumType's members' names in increasing value order.
|
|
GetNames ( |
Retrieves enumType's members' names in increasing value order. The parameter selection indicates what members to include.
|
|
GetTypeCode ( |
Retrieves enumType's underlying type's TypeCode.
|
|
GetUnderlyingType ( |
Retrieves the underlying type of enumType.
|
|
GetUnderlyingValue ( |
Returns value's underlying integral value.
|
|
GetValues ( |
Retrieves enumType's members' values in increasing value order.
|
|
GetValues ( |
Retrieves enumType's members' values in increasing value order. The parameter selection indicates what members to include.
|
|
IsDefined ( |
Indicates if value is defined.
|
|
IsValid ( |
Indicates if value is valid. If enumType is a standard enum it returns whether the value is defined. If enumType is marked with FlagsAttribute it returns whether it's a valid flag combination of enumType's defined values or is defined. Or if enumType has an attribute that implements IEnumValidatorAttribute{TEnum} then that attribute's IEnumValidatorAttribute{TEnum}.IsValid(TEnum) method is used.
|
|
Parse ( |
Converts the string representation of one or more member names or values of enumType to its respective value of type enumType.
|
|
Parse ( |
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.
|
|
ToByte ( |
Converts value to a byte.
|
|
ToInt16 ( |
Converts value to an short.
|
|
ToInt32 ( |
Converts value to an int.
|
|
ToInt64 ( |
Converts value to an long.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type.
|
|
ToObject ( |
Converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid.
|
|
TryParse ( |
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.
|
|
TryParse ( |
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.
|
|
TryToObject ( |
Tries to converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid. The return value indicates whether the conversion succeeded.
|
|
TryToObject ( |
Tries to convert the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The return value indicates whether the conversion succeeded.
|
|
TryToObject ( |
Tries to converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid. The return value indicates whether the conversion succeeded.
|
|
TryToObject ( |
Tries to convert the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The return value indicates whether the conversion succeeded.
|
|
TryToObject ( |
Tries to converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid. The return value indicates whether the conversion succeeded.
|
|
TryToObject ( |
Tries to convert the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The return value indicates whether the conversion succeeded.
|
|
TryToObject ( |
Tries to converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid. The return value indicates whether the conversion succeeded.
|
|
TryToObject ( |
Tries to convert the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The return value indicates whether the conversion succeeded.
|
|
TryToObject ( |
Tries to converts the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The parameter validate specifies whether to check that the result is valid. The return value indicates whether the conversion succeeded.
|
|
TryToObject ( |
Tries to convert the specified value to a value of type enumType while checking that it doesn't overflow the underlying type. The return value indicates whether the conversion succeeded.
|
|
Validate ( |
Validates that value is valid. If it's not it throws an ArgumentException with the specified paramName.
|
Method | Description | |
---|---|---|
CompareToInternal ( |
||
EqualsInternal ( |
||
GetEnumMember ( |
||
GetEnumMember ( |
||
GetEnumMember ( |
||
GetEnumMemberCount ( |
||
GetEnumMemberCount ( |
||
GetEnumMembers ( |
||
GetEnumMembers ( |
||
GetInfo ( |
||
GetNames ( |
||
GetNonGenericEnumInfo ( |
||
GetValues ( |
||
ToObject ( |
||
ToObject ( |
||
ToObject ( |
||
ToObject ( |
||
ToObject ( |
||
ToObject ( |
||
ToObject ( |
||
ToObject ( |
||
ToSByte ( |
||
ToUInt16 ( |
||
ToUInt32 ( |
||
ToUInt64 ( |
||
TryToObject ( |
||
TryToObject ( |
||
TryToObject ( |
||
TryToObject ( |
||
TryToObject ( |
||
TryToObject ( |
||
TryToObject ( |
||
TryToObject ( |
public static AsString ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | string |
public static AsString ( |
||
enumType | The enum type. | |
value | object | The enum value. |
format | EnumFormat | The output format to use. |
return | string |
public static AsString ( |
||
enumType | The enum type. | |
value | object | The enum value. |
format0 | EnumFormat | The first output format to use. |
format1 | EnumFormat | The second output format to use if using the first resolves to |
return | string |
public static AsString ( |
||
enumType | The enum type. | |
value | object | The enum value. |
format0 | EnumFormat | The first output format to use. |
format1 | EnumFormat | The second output format to use if using the first resolves to |
format2 | EnumFormat | The third output format to use if using the first and second both resolve to |
return | string |
public static AsString ( |
||
enumType | The enum type. | |
value | object | The enum value. |
format | string | The output format to use. |
return | string |
public static CompareTo ( |
||
enumType | The enum type. | |
value | object | The enum value. |
other | object | The other enum value. |
return | int |
public static Equals ( |
||
enumType | The enum type. | |
value | object | The enum value. |
other | object | The other enum value. |
return | bool |
public static Format ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | string |
public static Format ( |
||
enumType | The enum type. | |
value | object | The enum value. |
format | string | The output format to use. |
return | string |
public static GetMember ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | EnumMember |
public static GetMember ( |
||
enumType | The enum type. | |
name | string | The enum member name. |
return | EnumMember |
public static GetMember ( |
||
enumType | The enum type. | |
name | string | The enum member name. |
ignoreCase | bool | Indicates if the operation is case-insensitive. |
return | EnumMember |
public static GetMemberCount ( |
||
enumType | The enum type. | |
return | int |
public static GetMemberCount ( |
||
enumType | The enum type. | |
selection | EnumMemberSelection | Indicates what members to include. |
return | int |
public static GetMembers ( |
||
enumType | The enum type. | |
return | IEnumerable |
public static GetMembers ( |
||
enumType | The enum type. | |
selection | EnumMemberSelection | Indicates what members to include. |
return | IEnumerable |
public static GetName ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | string |
public static GetNames ( |
||
enumType | The enum type. | |
return | IEnumerable |
public static GetNames ( |
||
enumType | The enum type. | |
selection | EnumMemberSelection | Indicates what members to include. |
return | IEnumerable |
public static GetTypeCode ( |
||
enumType | The enum type. | |
return | TypeCode |
public static GetUnderlyingType ( |
||
enumType | The enum type. | |
return |
public static GetUnderlyingValue ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | object |
public static GetValues ( |
||
enumType | The enum type. | |
return | IEnumerable |
public static GetValues ( |
||
enumType | The enum type. | |
selection | EnumMemberSelection | Indicates what members to include. |
return | IEnumerable |
public static IsDefined ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | bool |
public static IsValid ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | bool |
public static Parse ( |
||
enumType | The enum type. | |
value | string | The enum member names or values' string representation. |
return | object |
public static Parse ( |
||
enumType | The enum type. | |
value | string | The enum member names or values' string representation. |
ignoreCase | bool | Indicates if the operation is case-insensitive. |
return | object |
public static ToByte ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | byte |
public static ToInt16 ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | short |
public static ToInt32 ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | int |
public static ToInt64 ( |
||
enumType | The enum type. | |
value | object | The enum value. |
return | long |
public static ToObject ( |
||
enumType | The enum type. | |
value | byte | Value to convert. |
return | object |
public static ToObject ( |
||
enumType | The enum type. | |
value | byte | Value to convert. |
validate | bool | Indicates whether to check that the result is valid. |
return | object |
public static ToObject ( |
||
enumType | The enum type. | |
value | int | Value to convert. |
return | object |
public static ToObject ( |
||
enumType | The enum type. | |
value | int | Value to convert. |
validate | bool | Indicates whether to check that the result is valid. |
return | object |
public static ToObject ( |
||
enumType | The enum type. | |
value | long | Value to convert. |
return | object |
public static ToObject ( |
||
enumType | The enum type. | |
value | long | Value to convert. |
validate | bool | Indicates whether to check that the result is valid. |
return | object |
public static ToObject ( |
||
enumType | The enum type. | |
value | object | Value to convert. Must be an |
return | object |
public static ToObject ( |
||
enumType | The enum type. | |
value | object | Value to convert. Must be an |
validate | bool | Indicates whether to check that the result is valid. |
return | object |
public static ToObject ( |
||
enumType | The enum type. | |
value | short | Value to convert. |
return | object |
public static ToObject ( |
||
enumType | The enum type. | |
value | short | Value to convert. |
validate | bool | Indicates whether to check that the result is valid. |
return | object |
public static TryParse ( |
||
enumType | 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 |
return | bool |
public static TryParse ( |
||
enumType | The enum type. | |
value | string | The enum member names or values' string representation. |
result | object | If the conversion succeeds this contains a |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | byte | Value to try to convert. |
validate | bool | Indicates whether to check that the result is valid. |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | byte | Value to try to convert. |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | int | Value to try to convert. |
validate | bool | Indicates whether to check that the result is valid. |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | int | Value to try to convert. |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | long | Value to try to convert. |
validate | bool | Indicates whether to check that the result is valid. |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | long | Value to try to convert. |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | object | Value to try to convert. Must be an |
validate | bool | Indicates whether to check that the result is valid. |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | object | Value to try to convert. Must be an |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | short | Value to try to convert. |
validate | bool | Indicates whether to check that the result is valid. |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static TryToObject ( |
||
enumType | The enum type. | |
value | short | Value to try to convert. |
result | object | If the conversion succeeds this contains a value of type |
return | bool |
public static Validate ( |
||
enumType | The enum type. | |
value | object | The enum value. |
paramName | string | The parameter name to be used if throwing an |
return | object |