how to check if textbox is empty in c#

C#
string.IsNullOrWhiteSpace(textBox.Text); // returns boolean
Source

Also in C#: