Show / Hide Table of Contents

Class Tree

A tree (directory listing) object.

Inheritance
System.Object
NativeDisposable
GitObject
Tree
Implements
IEnumerable<TreeEntry>
Inherited Members
GitObject.Id
NativeDisposable.Dispose()
Namespace: Dogged
Assembly: Dogged.dll
Syntax
public class Tree : GitObject

Properties

| Improve this Doc View Source

Count

Gets the number of entries in the tree.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

Type

Declaration
public override ObjectType Type { get; }
Property Value
Type Description
ObjectType
Overrides
GitObject.Type

Methods

| Improve this Doc View Source

GetEnumerator()

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<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX