Search Results for

    Show / Hide Table of Contents

    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
    IEquatable<AttributeKey<T>>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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, IReadOnlyList<string>, IReadOnlyList<SelectOption>, IReadOnlyList<AttributeCell> or IReadOnlyList<MatrixColumn>.

    Constructors

    | Edit this page View Source

    AttributeKey(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 Source

    DefaultValue

    Returned when the product has no value for the attribute.

    Declaration
    public T DefaultValue { get; init; }
    Property Value
    Type Description
    T
    | Edit this page View Source

    Number

    The Bluestone attribute number (compared ordinally).

    Declaration
    public string Number { get; init; }
    Property Value
    Type Description
    string

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX