Exemplo n.º 1
0
 public MergeableNode(T content, MergePoint mergePoint0, MergePoint mergePoint1, MergePoint mergePoint2, params MergeableNode <T>[] children)
     : this(content, new[] { mergePoint0, mergePoint1, mergePoint2 })
 {
     if (children != null)
     {
         Children = new MergeableNodeCollection <T>();
         Children.AddRange(children);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MergeableNode{T}" /> class with the given
 /// content.
 /// </summary>
 /// <param name="content">The content. (Can be <see langword="null" />.)</param>
 /// <param name="mergePoint0">The first merge point.</param>
 /// <param name="mergePoint1">The second merge point.</param>
 /// <param name="mergePoint2">The third merge point.</param>
 public MergeableNode(T content, MergePoint mergePoint0, MergePoint mergePoint1, MergePoint mergePoint2)
     : this(content, new[] { mergePoint0, mergePoint1, mergePoint2 })
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MergeableNode{T}" /> class with the given
 /// content.
 /// </summary>
 /// <param name="content">The content. (Can be <see langword="null" />.)</param>
 /// <param name="mergePoint">The first merge point.</param>
 public MergeableNode(T content, MergePoint mergePoint)
     : this(content, new [] { mergePoint })
 {
 }