© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. Troelsen, P. JapiksePro C# 10 with .NET 6https://doi.org/10.1007/978-1-4842-7869-7_11

11. Advanced C# Language Features

Andrew Troelsen1   and Phil Japikse2
Chambersburg, PA, USA
West Chester, OH, USA

In this chapter, you’ll deepen your understanding of the C# programming language by examining several more advanced topics. To begin, you’ll learn how to implement and use an indexer method. This C# mechanism enables you to build custom types that provide access to internal subitems using an array-like syntax. After you learn how to build an indexer method, you’ll see how to overload various operators (+, -, <, >, etc.) and how to create custom explicit ...

Get Pro C# 10 with .NET 6: Foundational Principles and Practices in Programming 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.