Skip to Main Content
Sams Teach Yourself C# 5.0 in 24 Hours
book

Sams Teach Yourself C# 5.0 in 24 Hours

by Scott J. Dorman
November 2012
Intermediate to advanced content levelIntermediate to advanced
544 pages
12h 3m
English
Sams
Content preview from Sams Teach Yourself C# 5.0 in 24 Hours

Hour 6. Creating Enumerated Types and Structures

What You’ll Learn in This Hour

Enumerated types

Working with structures

In the last few hours, you have been introduced to the basics of how types in C# work, including the predefined types and nullable types, and how classes in C# provide language syntax for object-oriented programming. You also saw how classes enable you to create your own types to represent real-world data. There are still two classifications of value types in C# that we have not talked about: the enumerated type and the structure.

Although classes are the primary mechanism you use to create new types, they do not provide a way to create types that are restricted in value nor do they enable you to create new value types. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself C#™ in 24 Hours

Sams Teach Yourself C#™ in 24 Hours

James Foxall, Wendy Haro-Chun

Publisher Resources

ISBN: 9780133256581Purchase book