private static void WriteTicksToLog(DebugWatchInfo dwi) { string filename = ConfigurationManager.AppSettings["DebugLogFile"] as string; if (filename != null) { dwi.ToXml(); _xmlDoc.Save(filename); } }