Example #1
0
        } // SaveTo

        public static string SaveAsString(this RecordTask task)
        {
            var buffer = new StringBuilder();

            task.SaveTo(buffer);
            return(buffer.ToString());
        } // SaveAsString
Example #2
0
        } // SaveAsString

        public static void SaveTo(this RecordTask task, StringBuilder buffer)
        {
            using (var writer = XmlWriter.Create(buffer, new XmlWriterSettings()
            {
                Indent = true
            }))
            {
                task.SaveTo(writer);
            } // using
        }     // SaveTo