MiniUtilIsNullableT Method

check nullability.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static bool IsNullable<T>(
	T obj
)

Parameters

obj  T
var.

Type Parameters

T
type to test.

Return Value

Boolean
true when type could hold a null.

Example

int x = 0; var test = IsNullable(x); // or: IsNullable(default(int));.

See Also