示例#1
0
        ///<summary>
        /// Create a new TydFile from a TydDocument.
        ///</summary>
        public static TydFile FromDocument(TydDocument doc, string filePath = null)
        {
            TydFile t = new TydFile();

            t.docNode  = doc;
            t.filePath = filePath;
            return(t);
        }
示例#2
0
        ///<summary>
        /// Create a new TydFile from a TydDocument.
        ///</summary>
        public static TydFile FromDocument(TydDocument doc, string filePath = null)
        {
            doc.Name = Path.GetFileName(filePath);
            var t = new TydFile();

            t._docNode  = doc;
            t._filePath = filePath;
            return(t);
        }