コード例 #1
0
 public void UpdateUser(Userdata userdata)
 {
     foreach (KeyValuePair <string, Userdata> user in users)
     {
         if (user.Value.Id == userdata.Id)
         {
             user.Value.FirstName  = userdata.FirstName;
             user.Value.LastName   = userdata.LastName;
             user.Value.Email      = userdata.Email;
             user.Value.Password   = userdata.Password;
             user.Value.CourseName = userdata.CourseName;
             break;
         }
     }
 }
コード例 #2
0
 public void UpdateUser(Userdata userdata)
 {
     foreach (var user in users)
     {
         if (user.Id == userdata.Id)
         {
             user.FirstName  = userdata.FirstName;
             user.LastName   = userdata.LastName;
             user.Email      = userdata.Email;
             user.Password   = userdata.Password;
             user.CourseName = userdata.CourseName;
             break;
         }
     }
 }
コード例 #3
0
 public void AddUser(Userdata userdata)
 {
     users.Add(userdata);
 }
コード例 #4
0
 public void AddUser(Userdata userdata)
 {
     users.Add(userdata.Id, userdata);
     //keyforuser += 1;
 }