Skip to content

Class EnumInfo

Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll

An enum scripts can use: its members are strings there ("no_title_bar"), a flags enum is a list of them.

public sealed class EnumInfo

Inheritance

object ← EnumInfo

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

EnumInfo(string, bool, IReadOnlyList<EnumMemberInfo>, string?)

public EnumInfo(string name, bool isFlags, IReadOnlyList<EnumMemberInfo> members, string? doc = null)

Parameters

name string

isFlags bool

members IReadOnlyList<EnumMemberInfo>

doc string?

Properties

Doc

public string? Doc { get; }

Property Value

string?

IsFlags

public bool IsFlags { get; }

Property Value

bool

Members

public IReadOnlyList<EnumMemberInfo> Members { get; }

Property Value

IReadOnlyList<EnumMemberInfo>

Name

public string Name { get; }

Property Value

string

Methods

GetName(long)

The name of a member, or the number when the value is none (for a flags enum: the names joined with |).

public string GetName(long value)

Parameters

value long

Returns

string

TryGetValue(string, out long)

public bool TryGetValue(string name, out long value)

Parameters

name string

value long

Returns

bool