RosettaCodeData/Task/Empty-string/C-sharp/empty-string-1.cs

10 lines
212 B
C#

using System;
class Program {
static void Main (string[] args) {
string example = string.Empty;
if (string.IsNullOrEmpty(example)) { }
if (!string.IsNullOrEmpty(example)) { }
}
}