Esempio n. 1
0
        public void Run()
        {
            {
                var cls = new MyClass {
                    DateTimes = new List <DateTime> {
                        DateTime.Now, DateTime.Now
                    }
                };
                var result1 = SerializeHelper.ToXml3(cls);
                Debug.WriteLine("\r\n\r\n{0}\r\n\r\n", (object)result1);
            }
            {
                var cls = new MyClass2 {
                    DateTimes = new List <DateTime> {
                        DateTime.Now, DateTime.Now
                    }
                };
                var result1 = SerializeHelper.ToXml3(cls);
                Debug.WriteLine("\r\n\r\n{0}\r\n\r\n", (object)result1);
            }

            {
                var cls = new MyClass3 {
                    DateTimes = new List <DateTime> {
                        DateTime.Now, DateTime.Now
                    }
                };
                var result1 = SerializeHelper.ToXml3(cls);
                Debug.WriteLine("\r\n\r\n{0}\r\n\r\n", (object)result1);
            }
        }
Esempio n. 2
0
        public void Run()
        {
            {
                var cls = new MyClass { DateTimes = new List<DateTime> { DateTime.Now, DateTime.Now } };
                var result1 = SerializeHelper.ToXml3(cls);
                Debug.WriteLine("\r\n\r\n{0}\r\n\r\n",(object)result1);

            }
            {
                var cls = new MyClass2 { DateTimes = new List<DateTime> { DateTime.Now, DateTime.Now } };
                var result1 = SerializeHelper.ToXml3(cls);
                Debug.WriteLine("\r\n\r\n{0}\r\n\r\n", (object)result1);
            }

            {
                var cls = new MyClass3 { DateTimes = new List<DateTime> { DateTime.Now, DateTime.Now } };
                var result1 = SerializeHelper.ToXml3(cls);
                Debug.WriteLine("\r\n\r\n{0}\r\n\r\n", (object)result1);
            }
        }