Ejemplo n.º 1
0
 public Team GetTeam(string key)
 {
     Team team = null;
     if (teamList.ContainsKey(key))
         return teamList[key] as Team;
     else
     {
         Console.WriteLine("新人加入");
         team = new SomeMTeam(key);
         return team;
     }
 }
Ejemplo n.º 2
0
        public Team GetTeam(string key)
        {
            Team team = null;

            if (teamList.ContainsKey(key))
            {
                return(teamList[key] as Team);
            }
            else
            {
                Console.WriteLine("新人加入");
                team = new SomeMTeam(key);
                return(team);
            }
        }