Catel.IO.Path.GetFullPath C# (CSharp) Метод

GetFullPath() публичный статический Метод

Returns the full path for a relative path.
The is null or whitespace. The is null or whitespace.
public static GetFullPath ( string relativePath, string basePath ) : string
relativePath string Relative path to convert to a full path.
basePath string Base path (a.k.a. working directory).
Результат string
        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