MiniUtilIsNullableT Method
check nullability.
Namespace: Karamba.UtilitiesAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
public static bool IsNullable<T>(
T obj
)
Public Shared Function IsNullable(Of T) (
obj As T
) As Boolean
public:
generic<typename T>
static bool IsNullable(
T obj
)
static member IsNullable :
obj : 'T -> bool
- obj T
- var.
- T
- type to test.
Booleantrue when type could hold a null.
int x = 0;
var test = IsNullable(x);
// or: IsNullable(default(int));.