Empty string: Difference between revisions

Content added Content deleted
(Go explanation)
Line 36: Line 36:
if (str.length() == 0) { ... }
if (str.length() == 0) { ... }
if (str == "") { ... }</lang>
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}}==
=={{header|D}}==