public static string GetFullPath(string relativePath, string basePath)
{
Argument.IsNotNullOrWhitespace("relativePath", relativePath);
Argument.IsNotNullOrWhitespace("basePath", basePath);
string path = System.IO.Path.Combine(basePath, relativePath);
if (string.IsNullOrEmpty(path))
{
return string.Empty;
}
// Get the path info (it may contain any relative path items such as ..\, but
// now it is safe to call GetFullPath))
path = System.IO.Path.GetFullPath(path);
return path;
}
#endif