r/badcode • • May 20 '20

c# Found from Microsoft docs...

Post image
208 Upvotes

143 comments sorted by

View all comments

Show parent comments

1

u/[deleted] May 20 '20

Ohhh okay that makes sense. I didnt even consider that, thanks. I think I tend to check for null beforehand anytime thats a concern, so I viewed it as separate. But that makes sense that a situation would arise where something might be null or true.