6Operators and Casts

OPERATORS AND CASTS

The preceding chapters have covered most of what you need to start writing useful programs using C#. This chapter continues the discussion with essential language elements and illustrates some powerful aspects of C# that enable you to extend its capabilities.

This chapter covers information about using operators, including operators that have been added with C# 6, such as the null-conditional operator and the nameof operator, as well as operator extensions of C# 7, such as pattern matching with the is operator. Later in this chapter, you see how operators are overloaded. The chapter also shows you how to ...

Get Professional C# 7 and .NET Core 2.0, 7th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.