Skip to content

EnumValue

public sealed record EnumValue

Namespace: RhoMicro.BindSight.Enrichments

Inheritance:

Models an enum value.

public EnumValue(string Name, object Value, string Description)

Models an enum value.

NameTypeDescription
DescriptionStringThe description of the enum value.
NameStringThe name of the enum value.
ValueObjectThe numerical value of the enum value.
private EnumValue(EnumValue original)
public string Name { get; init; }

The name of the enum value.

public object Value { get; init; }

The numerical value of the enum value.

public string Description { get; init; }

The description of the enum value.

public static ImmutableArray<EnumValue> Create(Type type)

Creates an instance for all values of the provided enum type.

NameTypeDescription
typeTypeThe type whose enum values to retrieve.

An array of all enum values found in typeif it represents an enum type; otherwise, an empty array.

public override string ToString()
public override int GetHashCode()
public override bool Equals(object? obj)
public bool Equals(EnumValue? other)
public void Deconstruct(out string Name, out object Value, out string Description)
public static bool operator !=(EnumValue? left, EnumValue? right)
public static bool operator ==(EnumValue? left, EnumValue? right)