K
krahenbuhl
Dear All,
I've a question related to Generics and casting in c# 2.0.
I've a class called Client which implements interface IClient.
I'd like to do:
LinkedList<Client> clients;
public LinkedList<IClient> getClients()
{
return clients;
}
but I got a casting error at compile time (even if the casting is
explicitly given). How should I do to get my list of IClient ?
Regards,
Greg
I've a question related to Generics and casting in c# 2.0.
I've a class called Client which implements interface IClient.
I'd like to do:
LinkedList<Client> clients;
public LinkedList<IClient> getClients()
{
return clients;
}
but I got a casting error at compile time (even if the casting is
explicitly given). How should I do to get my list of IClient ?
Regards,
Greg