Chapter 11. Fields, Properties, and Indexers

Having covered the code aspect of types by looking at methods in Chapter 10, “Methods,” we can now move on to the data aspect of types. Fields are containers for data that’s part of a type or its instances. We now discuss how to declare ...

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.