Skip to main content

Advanced C# Language Features

  • Chapter
  • 5372 Accesses

Abstract

In this chapter, you’ll deepen your understanding of the C# programming language by examining a number of 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 (+, -, <, >, and so forth) and how to create custom explicit and implicit conversion routines for your types (and you’ll learn why you might want to do this).

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Andrew Troelsen and Philip Japikse

About this chapter

Cite this chapter

Troelsen, A., Japikse, P. (2015). Advanced C# Language Features. In: C# 6.0 and the .NET 4.6 Framework. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1332-2_11

Download citation

Publish with us

Policies and ethics