Mono.Debugger.DebuggerConfiguration.WindowsToUnix C# (CSharp) Method

WindowsToUnix() public static method

public static WindowsToUnix ( string path ) : string
path string
return string
        public static string WindowsToUnix(string path)
        {
            path = path.Replace ('\\', '/');
            return path;
        }

Usage Example

示例#1
0
        public string MapFileName(string path)
        {
            path = DebuggerConfiguration.WindowsToUnix(path);
            foreach (KeyValuePair <string, string> map in directory_maps)
            {
                if (map_file_name(ref path, map.Key, map.Value))
                {
                    return(path);
                }
            }

            foreach (KeyValuePair <string, string> map in Config.DirectoryMaps)
            {
                if (map_file_name(ref path, map.Key, map.Value))
                {
                    return(path);
                }
            }

            return(path);
        }