Microsoft.VisualStudio.Project.NativeMethods.GetAbsolutePath C# (CSharp) Method

GetAbsolutePath() private method

private GetAbsolutePath ( string fileName ) : string
fileName string
return string
        public static string GetAbsolutePath(string fileName)
        {
            System.Diagnostics.Debug.Assert(fileName != null && fileName.Length > 0, "Cannot get absolute path, fileName is not valid");

            Uri uri = new Uri(fileName);
            return uri.LocalPath + uri.Fragment;
        }