Answers for "c# get the length of a string"

C#
16

string length c#

string name = "Anthony";
int nameLength = name.Length;
Console.WriteLine("The name " + name + " contains " + nameLength + "letters.");
Posted by: Guest on November-20-2019
1

how to get a length of a string in c#

string string1 = "A man i hurry just jumped on a tail of a dog and dog has bitten him damagingly";
//get length if string
Console.WriteLine(string1.Length);
Posted by: Guest on October-31-2021

Code answers related to "c# get the length of a string"

C# Answers by Framework

Browse Popular Code Answers by Language