public static String Delta(String XMLFilename, String path) { if (String.IsNullOrWhiteSpace(path)) { return(String.Empty); } else { return(Path.Combine(PathHelper.RelativePath(System.IO.Path.GetDirectoryName(path), System.IO.Path.GetDirectoryName(XMLFilename)), System.IO.Path.GetFileName(path))); } }
public static string RelativizePath(string parent, string filename) { return(System.IO.Path.Combine(PathHelper.RelativePath(System.IO.Path.GetDirectoryName(filename), System.IO.Path.GetDirectoryName(parent)), System.IO.Path.GetFileName(filename))); }