switch ~~ case用法

switch(xa.Name.ToUpper())
      {
       case "DATABASE":
        ConnString = xa.Value;
        break;
       case "HLDATABASE":
        HLConnString = xa.Value;
        break;
       default:
        break;
      }
posted @ 2006-02-21 10:42  苔苔以苔苔以苔  阅读(1023)  评论(0编辑  收藏  举报
猪先飞