Class Tree
A tree (directory listing) object.
Implements
IEnumerable<TreeEntry>
Namespace: Dogged
Assembly: Dogged.dll
Syntax
public class Tree : GitObject
Properties
| Improve this Doc View SourceCount
Gets the number of entries in the tree.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Gets the index entry at the specified index.
Declaration
public TreeEntry this[int position] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | position |
Property Value
Type | Description |
---|---|
TreeEntry |
Item[String]
Gets the index entry at the specified path.
Declaration
public TreeEntry this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type | Description |
---|---|
TreeEntry |
Type
Declaration
public override ObjectType Type { get; }
Property Value
Type | Description |
---|---|
ObjectType |
Overrides
Methods
| Improve this Doc View SourceGetEnumerator()
Returns an enumerate that iterates through tree entries.
Declaration
public IEnumerator<TreeEntry> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<TreeEntry> | An enumerator of TreeEntry objects |
Implements
IEnumerable<>