Version 3.3.1.2

EnumTypeUtilities<T> class

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.OdinInspector.Editor
public static class EnumTypeUtilities<T>
Inheritance
  • System.Object
  • EnumTypeUtilities<T>

Type Parameters

T

Properties

AllEnumMemberInfos
public static EnumTypeUtilities<T>.EnumMember[] AllEnumMemberInfos { get; }
IsFlagEnum
public static bool IsFlagEnum { get; }
Names
public static string[] Names { get; }
NiceNames
public static string[] NiceNames { get; }
VisibleEnumMemberInfos
public static EnumTypeUtilities<T>.EnumMember[] VisibleEnumMemberInfos { get; }

Methods

DecomposeEnumFlagValues(T)
public static T[] DecomposeEnumFlagValues(T enumFlagValue)
Parameters
T enumFlagValue

Returns
T[]

GetEnumMemberInfo(T)
public static EnumTypeUtilities<T>.EnumMember GetEnumMemberInfo(T value)
Parameters
T value

GetIndexOfEnumValue(T)
public static int GetIndexOfEnumValue(T enumValue)
Parameters
T enumValue

Returns
System.Int32