Пример #1
0
        /// <summary>
        /// 连接至根节点
        /// </summary>
        /// <returns></returns>
        public async Task <NodeConnection> ConnectRootNodeAsync()
        {
            var context = new FileFormatContext(FilePath);
            var node    = await context.GetRootNodeAsync();

            return(new NodeConnection(context, node));
        }
 internal NodeConnection(FileFormatContext context, Node node)
 {
     Context = context;
     Node    = node;
 }