Convert the value of an enum to the respective int value
Namespace:
Aruba.Cloud.Domains.Common.Entities
Assembly:
Aruba.Cloud.Domains.Common.Entities (in Aruba.Cloud.Domains.Common.Entities.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static Nullable<int> ToInt32(
this Enum enumValue
)
<ExtensionAttribute>
Public Shared Function ToInt32 (
enumValue As Enum
) As Nullable(Of Integer)
public:
[ExtensionAttribute]
static Nullable<int> ToInt32(
Enum^ enumValue
)
[<ExtensionAttribute>]
static member ToInt32 :
enumValue : Enum -> Nullable<int>
public static function ToInt32(
enumValue : Enum
) : Nullable<int>
Parameters
- enumValue
- Type: SystemEnum
Value of the enum
Return Value
Type:
NullableInt32Int value
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Enum. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also