예제 #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);
            }
        }
예제 #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);
            }
        }