EnumModelCastFromIntT Method |
Casts an integer back to an enum value. Throws an InvalidCastException if the integer is not one of the enum's values.
Namespace: VirtualRadar.Interface.ViewAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static T CastFromInt<T>(
int value
)
Public Shared Function CastFromInt(Of T) (
value As Integer
) As T
public:
generic<typename T>
static T CastFromInt(
int value
)
static member CastFromInt :
value : int -> 'T
Parameters
- value
- Type: SystemInt32
Type Parameters
- T
Return Value
Type:
TSee Also