コード例 #1
0
        /// <summary>
        /// Gets the string representation of a given absolute path.
        /// </summary>
        protected static string ToDebugString(RelativePath path)
        {
            Contract.Requires(path.IsValid);
#if DEBUG
            return(FrontEndContext.DebugContext != null
                ? path.ToString(FrontEndContext.DebugContext.StringTable, PathFormat.Script)
                : string.Join(PathFormatter.GetPathSeparator(PathFormat.Script).ToString(), path.Components.ToString()));
#else
            return(string.Join(PathFormatter.GetPathSeparator(PathFormat.Script).ToString(), path.Components.ToString()));
#endif
        }