/// <summary> /// Reads and returns a Document from the specified DDL string. /// </summary> public static Document DocumentFromString(string ddl) { using (var stringReader = new StringReader(ddl)) { using (var reader = new DdlReader(stringReader)) { return(reader.ReadDocument()); } } }
/// <summary> /// Reads and returns a Document from the specified file. /// </summary> public static Document DocumentFromFile(string documentFileName) //, ErrorManager2 _errorManager) { using (var reader = new DdlReader(documentFileName)) return(reader.ReadDocument()); }