C#C
C#4y ago
Gladiator

Is there any reason why comparing struct types with null does not result in compile error?

When comparing struct types with null, it is always false. So, why doesn't the compiler throw compilation error?
When and where do we want to compare struct types with null?! never because it is a logical bug
Was this page helpful?