src/debug/netcoredbg/SymbolReader.cs
/// <summary>
/// Quick fix for Path.GetFileName which incorrectly handles Windows-style paths on Linux
/// </summary>
/// <param name="pathName"> File path to be processed </param>
/// <returns>Last component of path</returns>
Quick fix for Path.GetFileName which incorrectly handles Windows-style paths on Linux
Quick fix for Path . GetFileName which incorrectly handles Windows - style paths on Linux
private static string GetFileName(string pathName)
        {
            int pos = pathName.LastIndexOfAny(new char[] { '/', '\\'});
            if (pos < 0)
                return pathName;
            return pathName.Substring(pos + 1);
        }
private static string GetFileName ( string pathName ) { int pos = pathName . LastIndexOfAny ( new char [ ] { ' ' , ' \\ ' } ) ; if ( pos < 0 ) return pathName ; return pathName . Substring ( pos + 1 ) ; }
Quick fix for Path.GetFileName which incorrectly handles Windows-style paths on Linux
Quick fix for Path . GetFileName which incorrectly handles Windows - style paths on Linux
Last component of path
Last component of path
pathName
string
File path to be processed
File path to be processed