A Programmer's Introduction to C# 2.0 (Expert's Voice)

A Programmer's Introduction to C# 2.0 (Expert's Voice)

Eric Gunnerson

Language: English

Pages: 568

ISBN: 1590595017

Format: PDF / Kindle (mobi) / ePub


* Written by a member of the original C# language design team and C# Program Manager; contains the expertise that pro C# programmers want.

* Follows the successful first and second editions; one of the earliest practical books for developers using C# 2.0.

* Introduces developers to critical new language elements introduced in C# 2.0, including generics, iterators, and partial classes.

* Good introduction to C#.

 

 

 

 

 

 

 

 

 

 

 

 

out in these areas as well. Deployment has been simplified, and in some cases there isn’t a traditional install step. Because the packages are deployed in a general format, a single package can run in any environment that supports .NET. Finally, the environment separates application components so that an application only runs with the components it shipped with, rather than with different versions shipped by other applications. [3] Some languages may not be able to interface with native platform

value); } public static void Process(short value) { Console.WriteLine("short {0}", value); } public static void Process(int value) { Console.WriteLine("int {0}", value); } } class Test { public static void Main() { int value1 = 2; sbyte value2 = 1; Conv.Process(value1); Conv.Process(value2); } } - 97 - The preceding code produces the following output: int 2 sbyte 1 In the first call to Process(), the compiler could only match the int parameter to one of the functions, the one that took an int

user has made a selection, but they are well suited for any asynchronous operation, such as a file being changed, or an email message arriving. The routine that an event will call is defined by a delegate. To make events easier to deal with, the design convention for events says that the delegate always takes two parameters. The first parameter is the object that raised the event, and the second parameter is an object that contains the information about the event. This object is always derived

Overview................................................................................................................................. - 167 Unary Operators...................................................................................................................... - 167 Binary Operators ..................................................................................................................... - 167 An

execution environments; for example, a control in a browser or a business object that executes in ASP+. Key to such components is that they have properties, methods, and events, and that they have attributes that provide declarative information about the component. All of these concepts are first-class language constructs in C#, making it a very natural language in which to construct and use components. ƒ To create a language in which everything really is an object. Through innovative use of

Download sample

Download