Click or drag to resize

ExtensionsToInt32 Method

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)
Syntax
public static Nullable<int> ToInt32(
	this Enum enumValue
)

Parameters

enumValue
Type: SystemEnum
Value of the enum

Return Value

Type: NullableInt32
Int 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