/// <summary> /// Reads and returns a domain object from the specified DDL string. /// </summary> public static DocumentObject ObjectFromString(string ddl, DdlReaderErrors errors) { using (var stringReader = new StringReader(ddl)) { using (var reader = new DdlReader(stringReader)) return(reader.ReadObject()); } }
/// <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 domain object from the specified file. /// </summary> public static DocumentObject ObjectFromFile(string documentFileName, DdlReaderErrors errors) { using (var reader = new DdlReader(documentFileName, errors)) return(reader.ReadObject()); }
/// <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()); }