예제 #1
0
 public User GetUserByName(string name)
 {
     if (!Name2UserID.ContainsKey(name))
     {
         return(null);
     }
     else
     {
         return(GetUser(Name2UserID[name]));
     }
 }
예제 #2
0
 public void AddUser(int id, string password, string name, string nick_name)
 {
     UserList.Add(id, new User(id, password, name, nick_name));
     Name2UserID.Add(name, id);
 }