ExtendibleEnumTryFromIntT Method
IT Hit WebDAV Classes Reference
Namespace:
ITHit.Collab
Assembly:
ITHit.Collab (in ITHit.Collab.dll) Version: 1.0.0.540 (1.0.0.540)
Syntax public static bool TryFromInt<T>(
int value,
out T result
)
where T : ExtendibleEnum
Public Shared Function TryFromInt(Of T As ExtendibleEnum) (
value As Integer,
<OutAttribute> ByRef result As T
) As Boolean
public:
generic<typename T>
where T : ExtendibleEnum
static bool TryFromInt(
int value,
[OutAttribute] T% result
)
static member TryFromInt :
value : int *
result : 'T byref -> bool when 'T : ExtendibleEnum
Parameters
- value
- Type: SystemInt32
Integer value to be converted. - result
- Type: T
ExtendibleEnum ot type T that match the value parameter.
Type Parameters
- T
- Type, derived from ExtendibleEnum, to convert to.
Return Value
Type:
BooleanTrue if the conversion was succesefull, false otherwise.
See Also