How can I check whether a string variable is empty or null in C#? [duplicate] December 3, 2022 by Tarik if (string.IsNullOrEmpty(myString)) { // }