C# Класс ExoModel.ModelPath

Represents a property path from a root ModelType with one or more steps.
Due to inheritance, property paths may branch as properties with similar names appear on siblings in the inheritance hierarchy.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void
GetInstances ( ModelInstance root ) : HashSet

Gets the model for the specified root object including all objects on the path.

ToString ( ) : string

Returns the string representation of the path.

Приватные методы

Метод Описание
CreatePath ( ModelType rootType, Expression expression ) : ModelPath

Creates a new ModelPath instance for the specified root ModelType based on the specified Expression tree.

CreatePath ( ModelType rootType, string path ) : ModelPath

Creates a new ModelPath instance for the specified root ModelType and path string.

GetInstances ( ModelInstance instance, ModelStepList steps, HashSet model ) : void

Recursively loads a path in the model by walking steps.

Notify ( ModelInstance instance ) : void

Notify path subscribers that the path has changed.

RemoveStep ( ModelStep step ) : void

Safely removes an invalid step from a path.

Subscribe ( ModelStepList steps ) : void

Recursively subscribes to path changes.

Unsubscribe ( ModelStepList steps ) : void

Recursively unsubscribes to path changes.

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetInstances() публичный Метод

Gets the model for the specified root object including all objects on the path.
public GetInstances ( ModelInstance root ) : HashSet
root ModelInstance
Результат HashSet

ToString() публичный Метод

Returns the string representation of the path.
public ToString ( ) : string
Результат string