Check string null in any better way C# -


a method accepts 7 string parameters, , need checked null basic way of them !string.isnullorwhitespace(param1) , likewise there better or smarter way ? also, may wrap parameters in object if helps !

you can pass string list , check this:

if(list.all(x=>string.isnullorwhitespace(x))) {  } 

Comments

Popular posts from this blog

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

python - TypeError: start must be a integer -

html - href attribute breaking an element -