public void SerializeProject()
        {
            NUnitProjectFile project = new NUnitProjectFile();

            XmlSerializer serializer = new XmlSerializer(typeof(NUnitProjectFile));
            StringWriter  writer     = new StringWriter();

            serializer.Serialize(writer, project);
            Console.WriteLine(writer);
        }
Пример #2
0
        public void SerializeProject()
        {
            NUnitProjectFile project = new NUnitProjectFile();

            XmlSerializer serializer = new XmlSerializer( typeof( NUnitProjectFile ) );
            StringWriter writer = new StringWriter();
            serializer.Serialize( writer, project );
            Console.WriteLine( writer );
        }