Class EnumValue
Inheritance
System.Object
EnumValue
Assembly: Cosmos.Build.Common.dll
Syntax
public class EnumValue : object
Constructors
|
Improve this Doc
View Source
EnumValue()
Declaration
|
Improve this Doc
View Source
EnumValue(Enum)
Declaration
public EnumValue(Enum value)
Parameters
Type |
Name |
Description |
Enum |
value |
|
Properties
|
Improve this Doc
View Source
Value
Declaration
public Enum Value { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Find(System.Collections.IEnumerable, Enum)
Declaration
public static EnumValue Find(System.Collections.IEnumerable items, Enum value)
Parameters
Type |
Name |
Description |
System.Collections.IEnumerable |
items |
|
Enum |
value |
|
Returns
|
Improve this Doc
View Source
GetEnumValues(Type, Boolean)
Declaration
public static EnumValue[] GetEnumValues(Type enumType, bool aSort)
Parameters
Type |
Name |
Description |
Type |
enumType |
|
System.Boolean |
aSort |
|
Returns
|
Improve this Doc
View Source
Parse<T>(String, T)
Parse string to enumeration.
Declaration
public static T Parse<T>(string value, T default)
where T : struct
Parameters
Type |
Name |
Description |
System.String |
value |
Value which should be parsed as the enumeration.
|
T |
default |
Default value to use, if input string contains invalid value.
|
Returns
Type |
Description |
T |
Parsed value, or default value if input string is invalid.
|
Type Parameters
Name |
Description |
T |
Type of enumeration to use.
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|