Bracket.Hosting.VirtualFileUtils.GetRoot C# (CSharp) Метод

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

public static GetRoot ( string path ) : string
path string
Результат string
        public static string GetRoot(string path)
        {
            if (String.IsNullOrEmpty(path))
                return String.Empty;
            return path.Split(new[] { '\\', '/' }, StringSplitOptions.RemoveEmptyEntries)[0];
        }