There are List<IClient>
and List<ClientName>
When the new Client connect to Service(Server), a new client's name will be written to all clients who is in the session.
But new client get only yourself.
I have:
foreach (IClientCallBack client in listClientCallBacks)
{
if (client == listClientCallBacks.Last())
{
foreach (var n in listClientsName)
{
client.Enter(n);
}
return;
}
client.Enter(name);
}
Please prompt are there variants without if
in this case?
Thanks in advance.
PS:Sorry for my English Language level.