The
Reflector 10.0.6.546 C# decompilation of System.Collections.Generic.LinkedList<T>.Contains(...) in C:\WINDOWS\Microsoft.net\Framework\v4.0.30319\System.dll (.NET 4.7.2) is not correct:
This is never valid
C# code regardless of
T being a reference or value-type (it's unconstrained here), because '
null' can never be compared with an inequality ("greater than").
For completeness, here is the corresponding
IL:
For completeness, here is the corresponding IL: