Answers for "check if multiple variables are null c#"

C#
0

check if multiple variables are null c#

if((string1 ?? string2 ?? string3 ?? string4 ?? string5 ?? string6) == null){ ;}
Posted by: Guest on April-03-2020
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

Code answers related to "check if multiple variables are null c#"

C# Answers by Framework

Browse Popular Code Answers by Language