コード例 #1
0
 /// <summary>
 /// Makes a shallow copy of a tree - all members of reference types, including sub-Trees, will refer to the same objects as in <paramref name="t"/>.
 /// </summary>
 /// <param name="t">The tree to copy.</param>
 /// <returns>A copy of <paramref name="t"/>.</returns>
 public static dynamic shallowCopy(TreeType t) => Tree(t.ToList());