New answers tagged

2

It seems to me that you should implement IComparer { Result Compare(Foo,Foo) bool CanCompare(type1,type2) } as a Type specific version ComparerBar1Bar2 : IComparer { Compare(Foo first ,Foo other) { return (Bar1)first == (Bar2)other; } bool CanCompare(type1,type2) { return type1 = Bar1 and type2 = Bar2; ...



Top 50 recent answers are included