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¶
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¶
IsFlags¶
public bool IsFlags { get; }
Property Value¶
Members¶
public IReadOnlyList<EnumMemberInfo> Members { get; }
Property Value¶
Name¶
public string Name { get; }
Property Value¶
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¶
TryGetValue(string, out long)¶
public bool TryGetValue(string name, out long value)
Parameters¶
name string
value long