ReflectionUtils.IsEnum method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Reflection
Assembly Skybrud.Essentials.dll

IsEnum<T>()

Static

Returns whether T is an enum.

public static bool IsEnum<T>()

Type Parameters

T

The type to check.

Returns

true if T is an enum; otherwise false.

IsEnum(Type)

Static

Returns whether the specified type is an enum.

public static bool IsEnum(Type type)

Parameters

type Type

The type to check.

Returns

true if type is an enum; otherwise false.