I wanna to compare two objects, for example:
DirectoryInfo di1 = new DirectoryInfo("C:\\");
DirectoryInfo di2 = new DirectoryInfo("C:\\");
OK, yeah I know we have here different reference, this class doesn't implement IComparable, and even GetHashCode is returning the different results.
But they are the same! (logically:))
I know that I can use reflection to compare every field and property between the classes, but it's too slow.
I can also use serialization; serialize every object and compare binary data, but that is even more slow!
Any other ideas??