示例#1
0
 public static AuditLogList ReadFromFile(string fileName, out string documentHash)
 {
     using (var reader = new XmlTextReader(fileName))
     {
         reader.ReadStartElement();
         documentHash = reader.ReadElementString(EL.document_hash.ToString());
         var result = reader.DeserializeElement <AuditLogList>();
         reader.ReadEndElement();
         return(result);
     }
 }