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 the functionality provided in Java version 1.4. The stateless, collection-oriented match capabilities are useful, and the ability to search text right to left provides support for localized searching.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset