VirtualFileSystem.VFS.AssertPathValid C# (CSharp) Method

AssertPathValid() public static method

路径无效时抛出异常
public static AssertPathValid ( String path ) : void
path String
return void
        public static void AssertPathValid(String path)
        {
            if (!IsPathValid(path))
            {
                throw new Exception("无效路径");
            }
        }