Answers for "c# check multiple variables for null"

C#
0

c# check multiple variables for null

bool allNull = strings.All(s => s == null);
// if you are using a collection
Posted by: Guest on May-12-2021
0

check if multiple variables are null c#

if((string1 ?? string2 ?? string3 ?? string4 ?? string5 ?? string6) == null){ ;}
Posted by: Guest on April-03-2020

Code answers related to "c# check multiple variables for null"

C# Answers by Framework

Browse Popular Code Answers by Language