コード例 #1
0
        public void TestListCustomers()
        {
            MetaManager metaManager = new MetaManager();

            Customer[] customers = metaManager.ListCustomers();

            System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(Customer[]), new Type[] { typeof(Customer), typeof(Configuration), typeof(ConfigurationType), typeof(Configuration[]) });

            string result = "-9";

            using (System.IO.StringWriter writer = new System.IO.StringWriter())
            {
                serializer.Serialize(writer, customers);

                result = writer.ToString();
            }

            Console.WriteLine(result);
        }