Click or drag to resize

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

Parameters

value
Type: SystemNullableInt32
Integer to convert from.

Type Parameters

T
Type to convert to.

Return Value

Type: T
ExtendibleEnum of type T or null if null is passed as a parameter.
See Also