Table of Contents

Struct Extensible<TEnum>

Namespace
GuildWars2
Assembly
GW2SDK.dll

Represents an enum that can be extended with additional values.

[JsonConverter(typeof(ExtensibleEnumJsonConverterFactory))]
public readonly struct Extensible<TEnum> : IComparable<Extensible<TEnum>>, IComparable, IEquatable<Extensible<TEnum>> where TEnum : struct, Enum

Type Parameters

TEnum

The type of the enum.

Implements
Inherited Members

Constructors

Extensible(string)

Represents an enum that can be extended with additional values.

Methods

CompareTo(Extensible<TEnum>)
CompareTo(object?)
Equals(Extensible<TEnum>)

Determines whether the current instance of Extensible is equal to another Extensible object.

Equals(object?)
FromString(string)

Converts a string to an instance of the Extensible enum class.

GetHashCode()
IsDefined()

Determines whether the current name is defined in the enum.

ToEnum()

Converts the current name to the corresponding enum value.

ToExtensible(TEnum)

Converts a value of type TEnum to an instance of Extensible<TEnum>.

ToString()

Operators

operator ==(in Extensible<TEnum>, in Extensible<TEnum>)

Determines whether two enums are equal.

operator ==(in Extensible<TEnum>, string)

Determines whether two enums are equal.

operator ==(in Extensible<TEnum>, TEnum)

Determines whether two enums are equal.

operator >(in Extensible<TEnum>, in Extensible<TEnum>)

Determines whether one Extensible object is greater than another.

operator >=(in Extensible<TEnum>, in Extensible<TEnum>)

Determines whether one Extensible object is greater than or equal to another.

implicit operator Extensible<TEnum>(string)

Implicitly converts a string to an instance of the Extensible enum class.

implicit operator Extensible<TEnum>(TEnum)

Implicitly converts an enum to an instance of the Extensible enum class.

operator !=(in Extensible<TEnum>, in Extensible<TEnum>)

Determines whether two enums are not equal.

operator !=(in Extensible<TEnum>, string)

Determines whether two enums are not equal.

operator !=(in Extensible<TEnum>, TEnum)

Determines whether two enums are not equal.

operator <(in Extensible<TEnum>, in Extensible<TEnum>)

Determines whether one Extensible object is less than another.

operator <=(in Extensible<TEnum>, in Extensible<TEnum>)

Determines whether one Extensible object is less than or equal to another.