Answers for "best practice c# check if string is null or whitespace"

C#
0

best practice c# check if string is null or whitespace

if(string.IsNullOrWhiteSpace(stringToCheck) == true){
  //do thing if empty, whitespace, or null
}else{
  //do thing if contains value
}
Posted by: Guest on October-19-2020

Code answers related to "best practice c# check if string is null or whitespace"

C# Answers by Framework

Browse Popular Code Answers by Language