C Sharp string.Length: Difference between revisions
From Coderwiki
More actions
new: info, example |
(No difference)
|
new: info, example |
(No difference)
|
In C Sharp, any string has the Length property.
You can access it by calling .Length on any string object.
string name = "Bob";
int length = name.Length;
Console.WriteLine(name);