// TODO: Use array utils! private Path Append(PathStep step) { var s = new PathStep[Length + 1]; _steps.CopyTo(s, 0); s[Length] = step; return(new Path(s)); }
private Path Prepend(PathStep step) { var s = new PathStep[Length + 1]; s[0] = step; _steps.CopyTo(s, 1); return(new Path(s)); }