예제 #1
0
 private ChangePath(IEnumerable <IChangePathPart> parts, IChangePathPart newPart, ChangeTarget target)
     : this(target)
 {
     Parts = parts.Append(newPart).ToList();
 }
예제 #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));
 }
예제 #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));
 }