C# how to get the length of a string code example
Example 1: string length c#
string name = "Anthony";
int nameLength = name.Length;
Console.WriteLine("The name " + name + " contains " + nameLength + "letters.");
Example 2: length of a string c#
string s = "Corona123";
int sizeOfString = s.Length;
Example 3: c# check lenght
'something'.Length; //Returns the length of whatever you check