Summary
This chapter has demonstrated the features of the String class and the functionality provided by the .NET class libraries to support string manipulation. We have shown that the support in both Java and .NET is broadly the same with respect to simple string manipulation, dynamic string building, and string encoding.
The string formatting features of .NET, however, offer better integration with the rest of the class library than the equivalent functionality in Java, and the C# params support results in cleaner syntax. The use of the IFormattable interface and the encapsulation of rendering logic within the target class provide a flexible architecture.
The regular expression implementation provided in .NET is strong and offers a superset of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access