예제 #1
0
 public void addUser(int id, string name, string email, string password)
 {
     User newUser = new User();
     newUser.ID = id;
     newUser.Name = Name;
     newUser.Email = email;
     newUser.Password = password;
 }
예제 #2
0
 public User getUser(int id)
 {
     User userReturn = new User();
     foreach (User u in userList)
     {
         System.Console.Write(u.Name);
         if (id == u.ID)
         {
             return u;
         }
     }
     return null;
 }