Anonymous user
Empty string: Difference between revisions
→{{header|C_sharp|C#}}: added C#
(Go explanation) |
(→{{header|C_sharp|C#}}: added C#) |
||
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}}==
|