Beispiel #1
0
 private void TryCloseDocument(IXDocument doc)
 {
     if (doc != null && doc.IsCommitted)
     {
         try
         {
             doc.Close();
         }
         catch
         {
         }
     }
 }
Beispiel #2
0
        private void TryCloseDocument(IXDocument doc)
        {
            if (doc != null && doc.IsCommitted)
            {
                try
                {
                    m_JournalWriter.WriteLine($"Closing '{doc.Path}'");

                    doc.Close();
                }
                catch
                {
                }
            }
        }