I have a struct Foo : IEquatable<Foo>
. I'm trying to write:
bool isEqual = a.Equals(b);
Where a
and b
are both of the type Foo?
. This code works, but b
is being boxed! Is there a way to avoid boxing?
See more on this question at Stackoverflow