Exemple #1
0
        // 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));
        }
Exemple #2
0
        private Path Prepend(PathStep step)
        {
            var s = new PathStep[Length + 1];

            s[0] = step;
            _steps.CopyTo(s, 1);

            return(new Path(s));
        }