Gets a value indicating whether the specified Type represents an enumeration.
public static bool IsEnum(this Type type)
true if the current Type represents an enumeration; otherwise, false.