check how long a string is c# code example Example: length of a string c# string s = "Corona123"; int sizeOfString = s.Length;