Working with Text: Getting Length and Character of String
Explore how to work with text in C# by learning to retrieve the length of strings and access specific characters using indexers. This lesson helps you understand string manipulation through practical coding examples and console output.
We'll cover the following...
We'll cover the following...
One of the other most common types of data for variables is text. The most common types in .NET for working with text are shown in the following table:
Namespace | Type | Description |
|
| Storage for a single text character |
|
| Storage for multiple text characters |
|
| Efficiently manipulates strings |
|
| Efficiently pattern-matches strings |
Getting the length of a string
Let’s explore ...