コード例 #1
0
ファイル: Program.cs プロジェクト: zanyants/mvp.xml
		static void Main(string[] args)
		{
			CustomerTemplate ct = new CustomerTemplate();
			ct.Customer = BuildCustomer();

			XmlWriterSettings ws = new XmlWriterSettings();
			ws.Indent = true;

			using (XmlWriter writer = XmlWriter.Create(Console.Out, ws))
			{
				ct.Render(writer);
			}

			Console.WriteLine();
		}
コード例 #2
0
ファイル: Program.cs プロジェクト: zanyants/mvp.xml
        static void Main(string[] args)
        {
            CustomerTemplate ct = new CustomerTemplate();

            ct.Customer = BuildCustomer();

            XmlWriterSettings ws = new XmlWriterSettings();

            ws.Indent = true;

            using (XmlWriter writer = XmlWriter.Create(Console.Out, ws))
            {
                ct.Render(writer);
            }

            Console.WriteLine();
        }