/// <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 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()); }