예제 #1
0
 /// <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());
     }
 }
예제 #2
0
 /// <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());
         }
     }
 }
예제 #3
0
 /// <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());
 }
예제 #4
0
 /// <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());
 }