Can I perform a nullable struct equality test without boxing?

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?

Jon Skeet
people
quotationmark

You can call the static Nullable.Equals method:

bool isEqual = Nullable.Equals(a, b);

people

See more on this question at Stackoverflow