1.

What Is The Difference Between System.text.stringbuilder And System.string?

Answer»

1. OBJECTS of type StringBuilder are MUTABLE where as objects of type SYSTEM.STRING are immutable.
2. As StringBuilder objects are mutable, they offer better performance than string objects of type System.String
3. StringBuilder CLASS is present in System.Text namespace where String class is present in System namespace.

1. Objects of type StringBuilder are mutable where as objects of type System.String are immutable.
2. As StringBuilder objects are mutable, they offer better performance than string objects of type System.String
3. StringBuilder class is present in System.Text namespace where String class is present in System namespace.



Discussion

No Comment Found