System.IO.DirectoryInfo.GetDisplayName C# (CSharp) Method

GetDisplayName() private static method

private static GetDisplayName ( String originalPath ) : String
originalPath String
return String
        private static String GetDisplayName(String originalPath)
        {
            Debug.Assert(originalPath != null);

            // Desktop documents that the path returned by ToString() should be the original path.
            // For SL/Phone we only gave the directory name regardless of what was passed in.
            return PathHelpers.ShouldReviseDirectoryPathToCurrent(originalPath) ?
                "." :
                originalPath;
        }