Skip Navigation LinksHome > Books > Code from a Book

Classes and Types

 
Book Name: Pro .NET 2.0 Windows Forms and Custom Controls in
Author: Matthew MacDonald
Renowned author Matthew MacDonald combines careful treatment of the API with detailed user-interface design principles. Further, this book incorporates C# and the final beta of .NET 2.0. The result: thorough coverage of Windows Forms and GDI+ namespaces for you .NET programmers! You will become equi...
Buy This Book: Click Here
    Viewed Times: 1564 Add Date: 08/10/2010
In the .NET world, there's another concept - types, Types is catchall term that includes the following ingredients:
Structures
Classes
Delegates
Enumerations
Interfaces

Structures: Value types
Classes: Reference types
Delegates: Delegate is a type which holds the method(s) reference in an object. It is also referred to as a type safe function pointer. Enumerations: In this example, an enumeration, Days, is declared. Two enumerators are explicitly converted to int and assigned to int variables Output:

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.