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