T
Tony Johansson
Hi!
My first question:
If I don't provide any IEqualityComparer to the constructor of the
Dictionary how will the Dictionary
doing the compare of keys ?
My second question is it always important to supply an IEqualityComparer as
argument to the Dictionary ?
public static void Main()
{
Dictionary<Car,string> dict = new Dictionary<Car,string>();
}
public class Car
{
private string name;
private int speed;
....
}
//Tony
My first question:
If I don't provide any IEqualityComparer to the constructor of the
Dictionary how will the Dictionary
doing the compare of keys ?
My second question is it always important to supply an IEqualityComparer as
argument to the Dictionary ?
public static void Main()
{
Dictionary<Car,string> dict = new Dictionary<Car,string>();
}
public class Car
{
private string name;
private int speed;
....
}
//Tony