Conversions

The final member type discussed in this chapter is the conversion operator. Conversions enable an object of one type to be turned into an object of another type, either in an implicit manner (where simple assignment suffices) or an explicit manner (where explicit “cast” syntax must be used).

Get C# 5.0 Unleashed 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.