﻿using System;

namespace _27
{
    class Program
    {
        static void Main(string[] args)
        {
            Person p = new Person();
            p.Hello();
            //生命嵌套类对象
            Person.Web w = new Person.Web();
            w.webName = "百度";
            w.webUrl = "www.baidu.com";
            w.Show();

            //匿名类 只读
            var mk = new
            {
                Name = "name111",
                Age = 100,
                Address = "北京"
            };
            //mk.Name = "111";

            System.Console.WriteLine("姓名：{0} 年龄：{1} 地址：{2}", mk.Name, mk.Age, mk.Address);
        }
    }
}
