Constructors

Constructors serve the goal of carrying out initialization tasks that are required for new class instances or for the initialization of a type. The first type of constructor is called an instance constructor; the latter is called a static constructor (or initializer in terms of Common Language Runtime [CLR] lingo).

Get C# 5.0 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.