C Sharp string.Length: Difference between revisions
From Coderwiki
More actions
new: info, example |
add example/output section |
||
| Line 8: | Line 8: | ||
int length = name.Length; | int length = name.Length; | ||
Console.WriteLine(name); | Console.WriteLine(name); | ||
</syntaxhighlight> | </syntaxhighlight>Output: | ||
3 | |||