DekGenius.com
[ Team LiB ] Previous Section Next Section

Chapter 6. String Handling

C# offers a wide range of string-handling features. Support is provided for both mutable and immutable strings, extensible string formatting, locale-aware string comparisons, and multiple string encoding systems. The string handling support also includes regular expression matching and replacement capabilities based on Perl 5 regular expressions, including lazy quantifiers (??, *?, +?, {n,m}?), positive and negative look-ahead, and conditional evaluation.

This chapter introduces and demonstrates the most common types you'll use in working with strings. The types mentioned in this section all exist in the System, System.Text, or System.Text.RegularExpressions namespaces (unless otherwise stated).

    [ Team LiB ] Previous Section Next Section