C# Класс Revenj.TreePath

Structure for hierarchical modeling. Supports labels separated by dots. Only alphanumeric values allowed for labels. eg: Level1.Level2.Level3
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Empty TreePath

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

Метод Описание
Create ( string path ) : TreePath

Create path from string value, eg: top.middle.bottom

Equals ( object obj ) : bool

Check for equality. Same as checking for string representation equality.

GetHashCode ( ) : int

Hash code is calculated of string representation

IsAncestor ( TreePath other ) : bool
IsDescendant ( TreePath other ) : bool
ToString ( ) : string

Return string representation of the value

TreePath ( string path ) : System

Construct path from string value, eg: top.middle.bottom

operator ( ) : TreePath

Concatenate two paths

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

Метод Описание
CheckParts ( string parts ) : void
Compare ( string left, string right, int count ) : bool
TreePath ( string value, string parts ) : System

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

Create() публичный статический Метод

Create path from string value, eg: top.middle.bottom
public static Create ( string path ) : TreePath
path string string representation
Результат TreePath

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

Check for equality. Same as checking for string representation equality.
public Equals ( object obj ) : bool
obj object string or TreePath
Результат bool

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

Hash code is calculated of string representation
public GetHashCode ( ) : int
Результат int

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

public IsAncestor ( TreePath other ) : bool
other TreePath
Результат bool

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

public IsDescendant ( TreePath other ) : bool
other TreePath
Результат bool

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

Return string representation of the value
public ToString ( ) : string
Результат string

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

Construct path from string value, eg: top.middle.bottom
public TreePath ( string path ) : System
path string string representation
Результат System

operator() публичный статический Метод

Concatenate two paths
public static operator ( ) : TreePath
Результат TreePath

Описание свойств

Empty публичное статическое свойство

Empty path
public static TreePath,Revenj Empty
Результат TreePath