示例#1
0
        //Main_8_1_5
        public static void Main_8_1_5()
        {
            MyLocation ml = new MyLocation();
            Console.WriteLine(ml.ToString());

            bool b = true;
            Console.WriteLine(b.ToString());
            double d = 10.11;
            Console.WriteLine(d.ToString());

            //���ڵ�ToString��д����ʾ��
            DateTime dt = DateTime.Now;
            string time = dt.ToString("D", DateTimeFormatInfo.CurrentInfo);
            Console.WriteLine(time);
            string stime = dt.ToString("d", DateTimeFormatInfo.InvariantInfo);
            Console.WriteLine(stime);
            Console.WriteLine(dt.GetHashCode());
        }