コード例 #1
0
            protected PathBase(string path)
            {
                Argument.IsNotNullOrEmpty(nameof(path), path);

                // At this point we know pathString is a valid path
                // but we need to normalize and resolve inner dir of path string
                var pathStringNormalized = AbsoluteRelativePathHelpers.NormalizeAndResolveInnerSpecialDir(path);

                CurrentPath = pathStringNormalized;
            }
コード例 #2
0
            //
            //  Ctor
            //
            protected PathBase(string pathString)
            {
                Debug.Assert(pathString != null);
                Debug.Assert(pathString.Length > 0);

                // At this point we know pathString is a valid path
                // but we need to normalize and resolve inner dir of path string
                var pathStringNormalized = AbsoluteRelativePathHelpers.NormalizeAndResolveInnerSpecialDir(pathString);

                m_PathString = pathStringNormalized;
            }