mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-28 19:45:48 +08:00
Streamline tree API a bit
This commit is contained in:
committed by
Patrik Svensson
parent
b136d0299b
commit
4bfb24bfcb
15
src/Spectre.Console/IHasTreeNodes.cs
Normal file
15
src/Spectre.Console/IHasTreeNodes.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Spectre.Console
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents something that has tree nodes.
|
||||
/// </summary>
|
||||
public interface IHasTreeNodes
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the children of this node.
|
||||
/// </summary>
|
||||
public List<TreeNode> Children { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user