Beispiel #1
0
 private ChangePath(IEnumerable <IChangePathPart> parts, IChangePathPart newPart, ChangeTarget target)
     : this(target)
 {
     Parts = parts.Append(newPart).ToList();
 }
Beispiel #2
0
 /// <summary>
 /// Appends the part to the end, creating a new <see cref="ChangePath"/>.
 /// </summary>
 /// <param name="part">The part to append.</param>
 /// <returns>A new <see cref="ChangePath"/> with the part appended.</returns>
 public ChangePath Append(IChangePathPart part)
 {
     return(new ChangePath(Parts, part, Target));
 }
Beispiel #3
0
 /// <summary>
 /// Creates a <see cref="ChangePath"/> from the provided part.
 /// </summary>
 /// <param name="part">The part to create the path from.</param>
 /// <returns></returns>
 public static ChangePath Create(IChangePathPart part)
 {
     return(Empty.Append(part));
 }