Class
Enum
class Enum
Module: System
Assembly: System.Runtime.dll
Source file: Foundations.rvn
Inheritance: Object → ValueType → Enum
Nominal base for enum declarations; the base itself is a reference class.
Derived types
Documented types in this API reference. Indirect relationships are marked.
Show less
Constructors
1 item
Enum()
Nominal base for enum declarations; the base itself is a reference class.
Methods
8 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
Static member:
Parse<TEnum>(text: string?, ignoreCase: bool) -> Result<TEnum, NumberParseError>
Parses enum text with explicit ordinal case handling; numeric values need not be named.
Static member:
Parse<TEnum>(text: string?) -> Result<TEnum, NumberParseError>
Parses an enum name, comma-separated names, or an invariant signed number.
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString
Static member:
TryParse<TEnum>(text: string?, ignoreCase: bool, result: out TEnum) -> bool
Attempts parsing with explicit ordinal case handling; failure resets result.
Static member:
TryParse<TEnum>(text: string?, result: out TEnum) -> bool
Attempts case-sensitive parsing; failure leaves result at its default value.