ExtendibleEnumFromIntSafeT Method
IT Hit WebDAV Classes Reference
Namespace: ITHit.WebDAVAssembly: ITHit.WebDAV (in ITHit.WebDAV.dll) Version: 1.0.0.503 (1.0.0.503)
Syntaxpublic 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