string uri = "file:\\C:\Users\...\...\App_Code\ClassDiagram.cd"; string localPath = new Uri(uri).LocalPath;
OR
@'C:\Users\...\...\App_Code\ClassDiagram.cd'
OR
'C:\\Users\\...\\...\\App_Code\\ClassDiagram.cd'
more than three ways to solve the problem
source share