public static RecordPath Merge(this RecordPath recordPath, RecordPath otherPath) { List <SymConnectRequestMessage.RecordDesignation> mergedPath = new List <SymConnectRequestMessage.RecordDesignation>(); mergedPath.AddRange(recordPath.Path); mergedPath.AddRange(otherPath.Path); return(new RecordPath(mergedPath)); }
public static RecordPath Reverse(this RecordPath recordPath) { var newPath = recordPath.Path.Reverse().ToList(); return(new RecordPath(newPath)); }