Skip to Main Content
C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals - Seventh Edition
book

C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals - Seventh Edition

by Mark J. Price
November 2022
Intermediate to advanced content levelIntermediate to advanced
818 pages
20h 38m
English
Packt Publishing
Content preview from C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals - Seventh Edition

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

System

SByte, Int16, Int32, Int64

Integers; that is, zero, and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 10 and .NET 6 – Modern Cross-Platform Development - Sixth Edition

C# 10 and .NET 6 – Modern Cross-Platform Development - Sixth Edition

Mark J. Price
Enterprise Application Development with C# 10 and .NET 6 - Second Edition

Enterprise Application Development with C# 10 and .NET 6 - Second Edition

Ravindra Akella, Arun Kumar Tamirisa, Suneel Kumar Kunani, Bhupesh Guptha Muthiyalu

Publisher Resources

ISBN: 9781803237800Supplemental Content