best practice csharp check if string is null or whitespace

Code Example - best practice csharp 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
}