What are the properties of a string class?



What are the properties of a string class?..

Answer / Sangeeta Kumari

The String class in C# has many useful properties such as Length (the number of characters), MaxLength (the maximum number of characters allowed for the string), and Chars (returns an array containing all the characters in the string). Additionally, strings can be compared using operators like == and != or methods like Compare(), Equals(), and ToLower()/ToUpper().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How can we acheive inheritance in VB.NET ?

2 Answers   TCS,


What is data reader in c#?

1 Answers  


What is difference between class and interface in c#?

1 Answers  


Do void methods have parameters?

1 Answers  


What are the classes contained in a single .NET DLL ?

1 Answers   Siebel,


Can we override interface method?

1 Answers  


How does c# generics and c++ templates compare?

1 Answers  


What is lastindexof c#?

1 Answers  


Can a loop recorder detect a heart attack?

1 Answers  


What do multicast delegates mean?

1 Answers  


How do I download a program to my desktop?

1 Answers  


What is lock statement in C#?

1 Answers   B-Ways TecnoSoft,


Categories