VirtualFileSystem.VFS.IsPathValid C# (CSharp) Méthode

IsPathValid() public static méthode

判断一个路径是否有效
public static IsPathValid ( String path ) : System.Boolean
path String
Résultat System.Boolean
        public static Boolean IsPathValid(String path)
        {
            if (path.Length == 0)
            {
                return false;
            }
            if (path.ElementAt(0) != '/')
            {
                return false;
            }
            return true;
        }