ACAT.Lib.Core.AbbreviationsManagement.Abbreviations.closeAbbreviationFile C# (CSharp) Method

closeAbbreviationFile() private method

Writes the closing xml element and closes the xmltextwriter object
private closeAbbreviationFile ( XmlWriter xmlTextWriter ) : void
xmlTextWriter System.Xml.XmlWriter opened xml writer object
return void
        private void closeAbbreviationFile(XmlWriter xmlTextWriter)
        {
            try
            {
                xmlTextWriter.WriteEndDocument();
                xmlTextWriter.Flush();
                xmlTextWriter.Close();
            }
            catch (Exception ex)
            {
                Log.Debug(ex.ToString());
            }
        }