How can we get the length of the string in Dot Net?

 Posted by vishalneeraj-24503 on 3/13/2014 | Category: C# Interview questions | Views: 1790 | Points: 40
Answer:

We have string'Length property which is used to return the Length of a given string.It's an in-built property of string object.
For Example:
string str = "Vishal";

int length = str.Length;


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response