C# Class Revenj.TreePath

Structure for hierarchical modeling. Supports labels separated by dots. Only alphanumeric values allowed for labels. eg: Level1.Level2.Level3
Afficher le fichier Open project: ngs-doo/revenj Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty TreePath

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
CheckParts ( string parts ) : void
Compare ( string left, string right, int count ) : bool
TreePath ( string value, string parts ) : System

Method Details

Create() public static méthode

Create path from string value, eg: top.middle.bottom
public static Create ( string path ) : TreePath
path string string representation
Résultat TreePath

Equals() public méthode

Check for equality. Same as checking for string representation equality.
public Equals ( object obj ) : bool
obj object string or TreePath
Résultat bool

GetHashCode() public méthode

Hash code is calculated of string representation
public GetHashCode ( ) : int
Résultat int

IsAncestor() public méthode

public IsAncestor ( TreePath other ) : bool
other TreePath
Résultat bool

IsDescendant() public méthode

public IsDescendant ( TreePath other ) : bool
other TreePath
Résultat bool

ToString() public méthode

Return string representation of the value
public ToString ( ) : string
Résultat string

TreePath() public méthode

Construct path from string value, eg: top.middle.bottom
public TreePath ( string path ) : System
path string string representation
Résultat System

operator() public static méthode

Concatenate two paths
public static operator ( ) : TreePath
Résultat TreePath

Property Details

Empty public_oe static_oe property

Empty path
public static TreePath,Revenj Empty
Résultat TreePath