What is a String? What are the properties of a String Class in C#?
- A String is a collection of char objects. We can also declare string variables in c#.
EX : string name = “C# Questions”;
A string class in C# represents a string.
A string class in C# represents a string.
- The properties of String class are Chars and Length.
- Chars get the Char object in the current String.
- Length gets the number of objects in the current String.
No comments