csharp check if string is empty

Code Example - csharp check if string is empty

                
                        if (string.IsNullOrEmpty(myString)) {
   //
}
                    
                
 

csharp check if textbox is not empty

                        
                                if (String.IsNullOrEmpty(textBox1.Text))
{
    // Do something...
}