コード例 #1
0
 public void AddClient(Client client)
 {
     lock (this)
     {
         clients.Add(client);
     }
 }
コード例 #2
0
 public bool RemoveClient(Client client)
 {
     lock (this)
     {
         if (clients.Contains(client))
         {
             clients.Remove(client);
             return true;
         }
         else
             return false;
     }
 }