Struct AttributeKey<T>
A typed reference to a Bluestone attribute, used with Get<T>(AttributeKey<T>). Define these once as static fields and reuse them.
Implements
Inherited Members
Namespace: Activout.Blue5.Attributes
Assembly: Activout.Blue5.dll
Syntax
public readonly record struct AttributeKey<T> : IEquatable<AttributeKey<T>>
Type Parameters
| Name | Description |
|---|---|
| T | Target type: string, bool, int, long, decimal,
double, DateOnly, DateTime, TimeOnly (or their nullable forms),
FormattedText, SelectOption, |
Constructors
| Edit this page View SourceAttributeKey(string, T)
A typed reference to a Bluestone attribute, used with Get<T>(AttributeKey<T>). Define these once as static fields and reuse them.
Declaration
public AttributeKey(string Number, T DefaultValue = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | Number | The Bluestone attribute number (compared ordinally). |
| T | DefaultValue | Returned when the product has no value for the attribute. |
Properties
| Edit this page View SourceDefaultValue
Returned when the product has no value for the attribute.
Declaration
public T DefaultValue { get; init; }
Property Value
| Type | Description |
|---|---|
| T |
Number
The Bluestone attribute number (compared ordinally).
Declaration
public string Number { get; init; }
Property Value
| Type | Description |
|---|---|
| string |