src/Microsoft.VisualStudio.ProjectSystem.Managed/IO/ManagedPathHelper.cs
/// <summary>
/// Tests a path to see if it is absolute or not. More reliable than <see cref="System.IO.Path.IsPathRooted"/>.
/// </summary>
/// <param name="path"></param>
Tests a path to see if it is absolute or not. More reliable than .
Tests a path to see if it is absolute or not . More reliable than .
public static bool IsRooted(string path)
        {
            Requires.NotNullOrEmpty(path, nameof(path));
            return Uri.TryCreate(path, UriKind.Absolute, out _);
        }
public static bool IsRooted ( string path ) { Requires . NotNullOrEmpty ( path , nameof ( path ) ) ; return Uri . TryCreate ( path , UriKind . Absolute , out _ ) ; }
Tests a path to see if it is absolute or not.
Tests a path to see if it is absolute or not .
// We don't use System.IO.Path.IsPathRooted because it doesn't support // URIs, and because it returns true for paths like "\dir\file", which is // relative to whatever drive we're talking about.
path
string
None