public void SaveReportMetadata <T>(ExamResultMetadata <T> reportMetadata) where T : BaseCheckResult { var outPath = getOutPath(); var xml = CommunicationHelper.SerializerToXml(reportMetadata); XmlDocument doc = new XmlDocument(); doc.LoadXml(xml); doc.Save(outPath + "Report_" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:ffff") + ".xml"); }