ExtendibleEnumFromIntSafeT Method
IT Hit WebDAV Classes Reference
Converts
Nullable int to
ExtendibleEnum of spcified type. Returns
null if
null is passed.
If no matching iteger value is found the
ArgumentException is thrown.
Namespace:
ITHit.Collab
Assembly:
ITHit.Collab (in ITHit.Collab.dll) Version: 1.0.0.540 (1.0.0.540)
Syntax public static T FromIntSafe<T>(
Nullable<int> value
)
where T : new(), ExtendibleEnum
Public Shared Function FromIntSafe(Of T As {New, ExtendibleEnum}) (
value As Nullable(Of Integer)
) As T
public:
generic<typename T>
where T : gcnew(), ExtendibleEnum
static T FromIntSafe(
Nullable<int> value
)
static member FromIntSafe :
value : Nullable<int> -> 'T when 'T : new() and ExtendibleEnum
Parameters
- value
- Type: SystemNullableInt32
Integer to convert from.
Type Parameters
- T
- Type to convert to.
Return Value
Type:
TExtendibleEnum of type
T or
null if
null is passed as a parameter.
See Also