I trying to find a proper way to find key in the dictionary with the class attribute.
for example see the code below - the ContainsKey is in erro becuse ther is not implementation for this ContainsKey(string) signature while the key is UserServiceData.
How can I solve this?
class UserServiceData
{
string name;
int someDate;
int someData1;
}
class B
{
public static Dictionary<UserServiceData, IClientKdcCallBack> users_list = new Dictionary<UserServiceData, IClientKdcCallBack>;
void isUserExists(string userName)
{
m_users_list.ContainsKey(userName)
}
}