Quantcast
Channel: Is there a difference between !(x is null) and x is object - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by TheGeneral for Is there a difference between !(x is null) and x is...

There is no appreciable difference. They both compile to the same CIL. Check for yourself hereNote : this is the case even with nullable types as you can see hereFrom the Standard ECMA-334 C# Language...

View Article



Is there a difference between !(x is null) and x is object

Is there a difference between !(x is null) and x is object?Are there cases where they will return different results?

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images