Class DataModelPathSegment
Represents a segment of a data model path
public class DataModelPathSegment : IDisposable
- Inheritance
-
objectDataModelPathSegment
- Implements
Properties
DataModelPath
Gets the data model path this is a segment of
public DataModelPath DataModelPath { get; }
Property Value
Identifier
Gets the identifier that is associated with this segment
public string Identifier { get; }
Property Value
IsStartSegment
Gets a boolean indicating whether this is the first segment in the path
public bool IsStartSegment { get; }
Property Value
Next
Gets the next segment in the path
public DataModelPathSegment? Next { get; }
Property Value
Path
Gets the path that leads to this segment
public string Path { get; }
Property Value
Previous
Gets the previous segment in the path
public DataModelPathSegment? Previous { get; }
Property Value
Type
Gets the type of data model this segment of the path points to
public DataModelPathSegmentType Type { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the object and optionally releases the managed resources.
protected virtual void Dispose(bool disposing)
Parameters
disposingbooltrue 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
public DataModelPropertyAttribute? GetPropertyDescription()
Returns
- DataModelPropertyAttribute
If found, the data model property description
GetPropertyInfo()
Gets the property info of the property this segment points to
public PropertyInfo? GetPropertyInfo()
Returns
- PropertyInfo
If static, the property info. If dynamic,
null
GetPropertyType()
Gets the type of the property this path points to
public Type? GetPropertyType()
Returns
- Type
If possible, the property type
GetValue()
Returns the current value of the path up to this segment
public object? GetValue()
Returns
- object
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.