2018-06-29 19:52:40 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
|
2021-02-18 11:06:02 +01:00
|
|
|
|
namespace Umbraco.Cms.Core.Trees
|
2018-06-29 19:52:40 +02:00
|
|
|
|
{
|
|
|
|
|
|
[CollectionDataContract(Name = "nodes", Namespace = "")]
|
|
|
|
|
|
public sealed class TreeNodeCollection : List<TreeNode>
|
|
|
|
|
|
{
|
2018-10-16 16:41:06 +11:00
|
|
|
|
public static TreeNodeCollection Empty => new TreeNodeCollection();
|
|
|
|
|
|
|
|
|
|
|
|
public TreeNodeCollection()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public TreeNodeCollection(IEnumerable<TreeNode> nodes)
|
|
|
|
|
|
: base(nodes)
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
2018-06-29 19:52:40 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|