8
Working with Common .NET Types
This chapter is about some common types that are included with .NET. These include types for manipulating numbers, text, and collections, improving working with spans, indexes, and ranges, and network access.
This chapter covers the following topics:
- Working with numbers
- Working with text
- Pattern matching with regular expressions
- Storing multiple objects in collections
- Working with spans, indexes, and ranges
- Working with network resources
Working with numbers
One of the most common types of data is numbers. The most common types in .NET for working with numbers are shown in the following table:
Namespace |
Example type(s) |
Description |
|
|
Integers; that is, zero, and ... |
Get C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals - Seventh Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.