AjaxControlToolkit.Jasmine.TestRunner.GetRelativePath C# (CSharp) Метод

GetRelativePath() приватный Метод

private GetRelativePath ( string fullPath, string basePath ) : string
fullPath string
basePath string
Результат string
        string GetRelativePath(string fullPath, string basePath)
        {
            if(!basePath.EndsWith(@"\"))
                basePath += @"\";

            var relativeUri = new Uri(basePath).MakeRelativeUri(new Uri(fullPath));

            return relativeUri.ToString().Replace("/", @"\");
        }