C# is a very rich language that provides too much sugar code that developers can take leverage from. In this chapter, we’ll look into some of the most popular features of C#, such as:
Boxing/Unboxing
Generics
Collection
Framework Interfaces
Manipulating Strings
Boxing and Unboxing
Boxing and unboxing are important concepts in a C# type’s system. They were introduced in C# 1 when there was no defined concept for generalization of types.
Boxing
Boxing refers to implicit conversion of a value type into an object type, or to any interface that it implements, e.g., int to IComparable<int>. ...