public string this[string Day]
    {
        get
        {
        string TodayWeather = null;
        //switch的标准写法
        switch (Day)
        {
            case "Sunday":
            {
                TodayWeather = "Today is cloudy!";
                break;
            }
            case "Friday":

      .....

posted on 2009-07-01 09:37  qinghao  阅读(142)  评论(0编辑  收藏  举报

Copyright © 2009 qinghao Powered by: 博客园