Empty string: Difference between revisions

(Go explanation)
Line 36:
if (str.length() == 0) { ... }
if (str == "") { ... }</lang>
 
=={{header|C sharp}}==
<lang csharp>using System;
 
class Program {
static void Main (string[] args) {
string example = string.Empty;
if (string.IsNullOrEmpty(example)) { }
if (!string.IsNullOrEmpty(example)) { }
}
}
</lang>
 
=={{header|D}}==
Anonymous user