mirror of
https://github.com/ldqk/Masuit.Tools.git
synced 2026-10-25 10:20:19 +08:00
24 lines
468 B
C#
24 lines
468 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Masuit.Tools.Models
|
|
{
|
|
public class Tree<T>
|
|
{
|
|
public Tree(T value)
|
|
{
|
|
Value = value;
|
|
}
|
|
|
|
public T Value { get; set; }
|
|
|
|
/// <summary>
|
|
/// 父节点
|
|
/// </summary>
|
|
public virtual T Parent { get; set; }
|
|
|
|
/// <summary>
|
|
/// 子级
|
|
/// </summary>
|
|
public virtual ICollection<Tree<T>> Children { get; set; }
|
|
}
|
|
} |