string.length-1 in asp.net code example Example: length of a string c# string s = "Corona123"; int sizeOfString = s.Length;