Open sandboxFocus

Method IsUnion

IsUnion(Type)

Determines whether a type is a union.

Declaration
public static bool IsUnion(Type type)
Parameters
Type Name Description
Type type

The type to evaluate.

Returns
Type Description
bool

true if type is a union; otherwise, false.