get string length
Published: 14. October 2011 | Updated: 26. October 2011License: Microsoft Public License (MS-PL)
Categories: Framework » Strings
Tags: Basics C# Text
string text = "my text"; int length = text.Length; Console.WriteLine(length);Console Output:
7
| Send us feedback about this snippet » |





