Programming C#"O'Reilly Media, Inc.", 2003 - 689 pagini C# was designed from the ground up for development on Microsoft's .NET framework. As such, it's a high-performance language that's simple, safe, object-oriented, and Internet-centric. Programming C#, 3rd Edition teaches this new language in a way that experienced programmers will appreciate--by grounding its applications firmly in the context of Microsoft's .NET platform and the development of desktop and Internet applications. Bestselling author Jesse Liberty has updated this latest edition to reflect the release of Visual Studio .NET 2003 and the .NET Framework 1.1. He's also added an entirely new chapter demonstrating various web forms and web services applications, and enlarged and expanded his coverage of events and delegates in response to numerous reader requests. He's even added tips for programmers coming from VB and C++ backgrounds. The first part of this book introduces C# fundamentals, then goes on to explain:
Part three gets to the heart of the .NET Framework, focusing on attributes and reflection, remoting, threads and synchronization, and streams. Part three also illustrates how to interoperate with COM objects. In much the way that you can see the features and personality of the parents and grandparents in young children, you can easily see the influence of Java, C++, Visual Basic, and other languages in C#. The level of information in Programming C#, 3rd Edition allows you to become productive quickly with C# and to rely on it as a powerful addition to your family of mastered programming languages. |
Cuprins
C and the NET Framework | 3 |
The NET Framework | 4 |
Compilation and the MSIL | 6 |
Getting Started Hello World | 8 |
Developing Hello World | 15 |
Using the Visual Studio NET Debugger | 18 |
C Language Fundamentals | 22 |
Variables and Constants | 27 |
Events | 285 |
Retrieving Values from Multicast Delegates | 293 |
Building Windows Applications | 304 |
Creating a Simple Windows Form | 305 |
Creating a Windows Forms Application | 317 |
XML Documentation Comments | 341 |
Deploying an Application | 342 |
Accessing Data with ADONET | 354 |
Expressions | 33 |
Whitespace | 34 |
Statements | 35 |
Operators | 49 |
Namespaces | 57 |
Preprocessor Directives | 59 |
Classes and Objects | 63 |
Defining Classes | 64 |
Creating Objects | 68 |
Using Static Members | 75 |
Destroying Objects | 80 |
Passing Parameters | 83 |
Overloading Methods and Constructors | 88 |
Encapsulating Data with Properties | 91 |
readonly Fields | 94 |
Inheritance and Polymorphism | 96 |
Inheritance | 99 |
Polymorphism | 102 |
Abstract Classes | 108 |
Object | 112 |
Boxing and Unboxing Types | 114 |
Nesting Classes | 116 |
Operator Overloading | 119 |
Supporting Other NET Languages | 120 |
Logical Pairs | 121 |
Conversion Operators | 122 |
Structs | 128 |
Creating Structs | 131 |
Interfaces | 135 |
Implementing an Interface | 136 |
Accessing Interface Methods | 144 |
Overriding Interface Implementations | 150 |
Explicit Interface Implementation | 154 |
Arrays Indexers and Collections | 163 |
The foreach Statement | 167 |
Indexers | 181 |
Collection Interfaces | 190 |
Array Lists | 195 |
Queues | 206 |
Stacks | 209 |
Dictionaries | 213 |
Strings and Regular Expressions | 219 |
Regular Expressions | 233 |
Handling Exceptions | 245 |
Throwing and Catching Exceptions | 246 |
Exception Objects | 255 |
Custom Exceptions | 258 |
Rethrowing Exceptions | 260 |
Delegates and Events | 265 |
Delegates | 266 |
Multicasting | 281 |
The ADONET Object Model | 358 |
Getting Started with ADONET | 360 |
Using OLE DB Managed Providers | 364 |
Working with DataBound Controls | 367 |
Changing Database Records | 378 |
ADONET and XML | 395 |
Programming Web Forms and Web Services | 396 |
Understanding Web Forms | 397 |
Creating a Web Form | 400 |
Adding Controls | 403 |
Data Binding | 406 |
Responding to Postback Events | 414 |
Web Services | 416 |
Building a Web Service | 417 |
Creating the Proxy | 421 |
Putting It All Together | 426 |
The ScreenScraper Application | 428 |
Displaying the Output | 441 |
Creating the Web Services Client | 453 |
Searching By Category | 461 |
Assemblies and Versioning | 472 |
Metadata | 473 |
MultiModule Assemblies | 475 |
Private Assemblies | 484 |
Shared Assemblies | 485 |
Attributes and Reflection | 491 |
Reflection | 498 |
Reflection Emit | 507 |
Marshaling and Remoting | 531 |
Application Domains | 532 |
Context | 542 |
Remoting | 544 |
Threads and Synchronization | 555 |
Threads | 556 |
Synchronization | 564 |
Race Conditions and Deadlocks | 575 |
Streams | 577 |
Reading and Writing Data | 588 |
Asynchronous IO | 595 |
Network IO | 599 |
Web Streams | 619 |
Serialization | 621 |
Isolated Storage | 629 |
Programming NET and COM | 633 |
Importing COM Components | 642 |
Exporting NET Components | 650 |
PInvoke | 652 |
Pointers | 655 |
C Keywords | 660 |
Index | 666 |