using System;
//Empty string
var someEmptyString = " ";
var anotherEmptyString = string.Empty;
if (string.IsNullOrWhiteSpace(someEmptyString)) {
Console.WriteLine("string is empty or null");
}
if (string.IsNullOrEmpty(anotherEmptyString)) {
Console.WriteLine("another string is empty or null");
}