Our application requires int?
variables. I'm often checking both to make sure not null and not 0 and it does get lengthy.
Is there an out of the box version of String.IsNullOrWhiteSpace()
or String.IsNullOrEmpty()
for int?
Maybe this would require an extension method?
If there even was or when someone makes one, would something like this considered bad practice?