Complex Tasks
Until now, the focus has been on individual instructions. Most programs consist of complex tasks, such as creating a new class, creating an array, or executing a for loop. Complex tasks typically comprise multiple instructions.
Managing Types
Classes contain static and instance members. The static members are accessible through the class name, whereas instance members are bound to an object. The WriteLine method is a static method. As demonstrated in previous sample code, WriteLine is called directly on the Console class (for example, System.Console::WriteLine).
Instance members require an object. The newobj instruction creates an object (an instance of a class) and then invokes the constructor to initialize the members of the object. ...
Get Programming Microsoft® Visual C#® 2008: The Language 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.