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];
        }