length of a string c#

C#
string s = "Corona123";
int sizeOfString = s.Length;string name = "Anthony";
int nameLength = name.Length;
Console.WriteLine("The name " + name + " contains " + nameLength + "letters.");
Source

Also in C#: