Artemis Artemis
Artemis Artemis

Search Results for

    Class DataModelPathSegment

    Represents a segment of a data model path

    Inheritance
    object
    DataModelPathSegment
    Implements
    IDisposable
    Namespace: Artemis.Core
    Assembly: Artemis.Core.dll
    Syntax
    public class DataModelPathSegment : IDisposable

    Properties

    DataModelPath

    Gets the data model path this is a segment of

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

    Identifier

    Gets the identifier that is associated with this segment

    Declaration
    public string Identifier { get; }
    Property Value
    Type Description
    string

    IsStartSegment

    Gets a boolean indicating whether this is the first segment in the path

    Declaration
    public bool IsStartSegment { get; }
    Property Value
    Type Description
    bool

    Next

    Gets the next segment in the path

    Declaration
    public DataModelPathSegment? Next { get; }
    Property Value
    Type Description
    DataModelPathSegment

    Path

    Gets the path that leads to this segment

    Declaration
    public string Path { get; }
    Property Value
    Type Description
    string

    Previous

    Gets the previous segment in the path

    Declaration
    public DataModelPathSegment? Previous { get; }
    Property Value
    Type Description
    DataModelPathSegment

    Type

    Gets the type of data model this segment of the path points to

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

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Dispose(bool)

    Releases the unmanaged resources used by the object and optionally releases the managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    GetPropertyDescription()

    Gets the property description of the property this segment points to

    Declaration
    public DataModelPropertyAttribute? GetPropertyDescription()
    Returns
    Type Description
    DataModelPropertyAttribute

    If found, the data model property description

    GetPropertyInfo()

    Gets the property info of the property this segment points to

    Declaration
    public PropertyInfo? GetPropertyInfo()
    Returns
    Type Description
    PropertyInfo

    If static, the property info. If dynamic, null

    GetPropertyType()

    Gets the type of the property this path points to

    Declaration
    public Type? GetPropertyType()
    Returns
    Type Description
    Type

    If possible, the property type

    GetValue()

    Returns the current value of the path up to this segment

    Declaration
    public object? GetValue()
    Returns
    Type Description
    object

    ToString()

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

    Implements

    IDisposable
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.