test/Shared/FunctionalTests.Transitional/TestHelpers/IOHelpers.cs
/// <summary>
/// Safely returns the absolute path for the specified path string.
/// </summary>
/// <param name="path"> The file or directory for which to obtain absolute path information. </param>
/// <returns> A string containing the fully qualified location of path, such as "C:\MyFile.txt". </returns>
Safely returns the absolute path for the specified path string.
Safely returns the absolute path for the specified path string .
[SecuritySafeCritical]
        [PermissionSet(SecurityAction.Assert, Unrestricted = true)]
        public static string GetFullPath(string path)
        {
            return Path.GetFullPath(path);
        }
[ SecuritySafeCritical ] [ PermissionSet ( SecurityAction . Assert , Unrestricted = true ) ] public static string GetFullPath ( string path ) { return Path . GetFullPath ( path ) ; }
Safely returns the absolute path for the specified path string.
Safely returns the absolute path for the specified path string .
// Calling Path.GetFullPath demands FileIOPermission (PathDiscovery flag) for the specified path.
A string containing the fully qualified location of path, such as "C:\MyFile.txt".
A string containing the fully qualified location of path such as " C : \ MyFile . txt " .
path
string
The file or directory for which to obtain absolute path information.
The file or directory for which to obtain absolute path information .