Search Results for

    Show / Hide Table of Contents

    Class ColumnDataType

    Represents the data type configuration for a spreadsheet column. Contains information about the base data type and additional metadata like range definitions, type references for enums/custom classes, and object reference types.

    Inheritance
    object
    ColumnDataType
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit.Sheets
    Assembly: Glitch9.AIDevKit.Sheets.dll
    Syntax
    [Serializable]
    public sealed class ColumnDataType

    Constructors

    | Edit this page View Source

    ColumnDataType()

    Initializes a new instance of the ColumnDataType class with default values.

    Declaration
    public ColumnDataType()
    | Edit this page View Source

    ColumnDataType(DataType, TypeReference, RangeDefinition, ObjectReferenceType, LocalizationReference)

    Initializes a new instance of the ColumnDataType class with specified configuration.

    Declaration
    public ColumnDataType(DataType type, TypeReference typeReference = null, RangeDefinition rangeDefinition = null, ObjectReferenceType objectReferenceType = ObjectReferenceType.Direct, LocalizationReference localizationReference = null)
    Parameters
    Type Name Description
    DataType type

    The base data type.

    TypeReference typeReference

    Optional type reference for Enum or CustomClass types.

    RangeDefinition rangeDefinition

    Optional range definition for numeric range types.

    ObjectReferenceType objectReferenceType

    The object reference type for Unity Object types.

    LocalizationReference localizationReference

    Optional localization reference configuration.

    Properties

    | Edit this page View Source

    DataType

    Gets or sets the base data type of the column.

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

    LocalizationReference

    Gets or sets the localization reference configuration for columns that reference localized data. Contains information about the referenced table and column for localization lookups.

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

    ObjectReferenceType

    Gets or sets the object reference type for Unity Object type columns. Determines whether the reference is Direct, Addressable, or URL-based.

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

    RangeDefinition

    Gets or sets the range definition for numeric range type columns (e.g., IntRange, FloatRange). Defines minimum, maximum, and step values.

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

    TypeReference

    Gets or sets the type reference for Enum or CustomClass type columns. Contains the fully qualified type name.

    Declaration
    public TypeReference TypeReference { get; }
    Property Value
    Type Description
    TypeReference

    Methods

    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    | Edit this page View Source

    operator ==(ColumnDataType, DataType)

    Determines whether a ColumnDataType is equal to a DataType.

    Declaration
    public static bool operator ==(ColumnDataType cdt, DataType dt)
    Parameters
    Type Name Description
    ColumnDataType cdt
    DataType dt
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator ==(DataType, ColumnDataType)

    Determines whether a DataType is equal to a ColumnDataType.

    Declaration
    public static bool operator ==(DataType dt, ColumnDataType cdt)
    Parameters
    Type Name Description
    DataType dt
    ColumnDataType cdt
    Returns
    Type Description
    bool
    | Edit this page View Source

    explicit operator DataType(ColumnDataType)

    Explicitly converts a ColumnDataType to its base DataType.

    Declaration
    public static explicit operator DataType(ColumnDataType columnDataType)
    Parameters
    Type Name Description
    ColumnDataType columnDataType
    Returns
    Type Description
    DataType
    | Edit this page View Source

    explicit operator ColumnDataType(DataType)

    Explicitly converts a DataType to a ColumnDataType.

    Declaration
    public static explicit operator ColumnDataType(DataType type)
    Parameters
    Type Name Description
    DataType type
    Returns
    Type Description
    ColumnDataType
    | Edit this page View Source

    operator !=(ColumnDataType, DataType)

    Determines whether a ColumnDataType is not equal to a DataType.

    Declaration
    public static bool operator !=(ColumnDataType cdt, DataType dt)
    Parameters
    Type Name Description
    ColumnDataType cdt
    DataType dt
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(DataType, ColumnDataType)

    Determines whether a DataType is not equal to a ColumnDataType.

    Declaration
    public static bool operator !=(DataType dt, ColumnDataType cdt)
    Parameters
    Type Name Description
    DataType dt
    ColumnDataType cdt
    Returns
    Type Description
    bool

    Extension Methods

    SheetsTypeRules.DoesNotSupportUrl(ColumnDataType)
    SheetsTypeRules.IsAssetType(ColumnDataType)
    SheetsTypeRules.IsAudioType(ColumnDataType)
    SheetsTypeRules.IsGeneratableAssetType(ColumnDataType)
    SheetsTypeRules.IsImageType(ColumnDataType)
    SheetsTypeRules.IsPremitiveType(ColumnDataType)
    SheetsTypeRules.IsRangeType(ColumnDataType)
    SheetsTypeRules.IsSystemType(ColumnDataType)
    SheetsTypeRules.IsTextType(ColumnDataType)
    SheetsTypeRules.IsUnityPrimitiveType(ColumnDataType)
    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation