Manipulating Strings in .NET

.NET provides an extensive set of routines that enable you to efficiently create, compare, and modify strings as well as rapidly parse large amounts of text and data to search for, remove, and replace text patterns.

In This Section

Best Practices for Using Strings
Examines string-sorting, comparison, and casing methods in .NET, and provides recommendations for selecting a string-handling method .

.NET Regular Expressions
Provides detailed information about .NET regular expressions, including language elements, regular expression behavior, and examples.

Basic String Operations
Describes string operations provided by the System.String and System.Text.StringBuilder classes, including creating new strings from arrays of bytes, comparing string values, and modifying existing strings.

Type Conversion in .NET
Explains the techniques and rules used to convert types using .NET.

Formatting Types
Provides how to use the base class library to implement formatting, how to format numeric types, how to format string types, and how to format for a specific culture.

Parsing Strings
Describes how to initialize objects to the values described by string representations of those objects. Parsing is the inverse operation of formatting.