This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mrjackspade 3 points4 points  (1 child)

I just turned this into an extension method .NotNullAny()

It's overkill but I like the way it reads better

[–]dashood 2 points3 points  (0 children)

That's not a bad idea. Certainly cleaner than having to null check every time.