EnumValue
public sealed record EnumValue
Namespace: RhoMicro.BindSight.Enrichments
Inheritance:
DirectoryEnumValue
Summary
Section titled “Summary”Models an enum value.
Constructors
Section titled “Constructors”EnumValue(string, object, string)
Section titled “EnumValue(string, object, string)”public EnumValue(string Name, object Value, string Description)
Summary
Section titled “Summary”Models an enum value.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
Description | String | The description of the enum value. |
Name | String | The name of the enum value. |
Value | Object | The numerical value of the enum value. |
EnumValue(EnumValue)
Section titled “EnumValue(EnumValue)”private EnumValue(EnumValue original)
Properties
Section titled “Properties”public string Name { get; init; }
Summary
Section titled “Summary”The name of the enum value.
public object Value { get; init; }
Summary
Section titled “Summary”The numerical value of the enum value.
Description
Section titled “Description”public string Description { get; init; }
Summary
Section titled “Summary”The description of the enum value.
Methods
Section titled “Methods”Create(Type)
Section titled “Create(Type)”public static ImmutableArray<EnumValue> Create(Type type)
Summary
Section titled “Summary”Creates an instance for all values of the provided enum type.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
type | Type | The type whose enum values to retrieve. |
Returns
Section titled “Returns”An array of all enum values found in typeif it represents an enum type; otherwise, an empty array.
ToString()
Section titled “ToString()”public override string ToString()
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()
Equals(object)
Section titled “Equals(object)”public override bool Equals(object? obj)
Equals(EnumValue)
Section titled “Equals(EnumValue)”public bool Equals(EnumValue? other)
Deconstruct(string, object, string)
Section titled “Deconstruct(string, object, string)”public void Deconstruct(out string Name, out object Value, out string Description)
Operators
Section titled “Operators”operator !=(EnumValue, EnumValue)
Section titled “operator !=(EnumValue, EnumValue)”public static bool operator !=(EnumValue? left, EnumValue? right)
operator ==(EnumValue, EnumValue)
Section titled “operator ==(EnumValue, EnumValue)”public static bool operator ==(EnumValue? left, EnumValue? right)