C# 2.0 (eBook)
272 Seiten
Elsevier Science (Verlag)
978-0-08-048843-1 (ISBN)
Written by a team that boasts extensive experience teaching C# to professionals, this book provides a practical, efficient explanation of the language itself, covering basic to advanced features and calling out all that's new in 2.0. Its instruction is always firmly situated within the context of the .NET framework and bolstered by code examples, key lessons in object-oriented programming, and installments of a realistic application programming tutorial. Concise and incisive, this is the best way to master the world's fastest-growing and most marketable programming language.
Features
* Provides a carefully focused explanation of every aspect of the C# language, including entire chapters on the unified type system, advanced types, collections, generics, reflection and attributes.
* Highlights all features new to the latest version of C# and organizes its presentation of C# according to the key principles of object-oriented programming and the .NET framework.
* Using end-of-chapter exercises, incrementally develops a cohesive application programming tutorial.
* Includes an easy-to-use appendix on the grammatical rules of C# and provides downloadable example code via the companion website.
* Provides a carefully focused explanation of every aspect of the C# language, including entire chapters on the unified type system, advanced types, collections, generics, reflection and attributes.
* Highlights all features new to the latest version of C# and organizes its presentation of C# according to the key principles of object-oriented programming and the .NET framework.
* Using end-of-chapter exercises, incrementally develops a cohesive application programming tutorial.
* Includes an easy-to-use appendix on the grammatical rules of C# and provides downloadable example code via the companion website.
You don't need coddling; you don't need to be told what you already know. What you need is a book that uses your experience as a Java or C++ programmer to give you a leg up into the challenges and rewards of C#. And this Practical Guide is precisely what you're after. Written by a team that boasts extensive experience teaching C# to professionals, this book provides a practical, efficient explanation of the language itself, covering basic to advanced features and calling out all that's new in 2.0. Its instruction is always firmly situated within the context of the .NET framework and bolstered by code examples, key lessons in object-oriented programming, and installments of a realistic application programming tutorial. Concise and incisive, this is the best way to master the world's fastest-growing and most marketable programming language. Features:- Provides a carefully focused explanation of every aspect of the C# language, including entire chapters on the unified type system, advanced types, collections, generics, reflection and attributes. - Highlights all features new to the latest version of C# and organizes its presentation of C# according to the key principles of object-oriented programming and the .NET framework. - Using end-of-chapter exercises, incrementally develops a cohesive application programming tutorial. - Provides a carefully focused explanation of every aspect of the C# language, including entire chapters on the unified type system, advanced types, collections, generics, reflection and attributes. - Highlights all features new to the latest version of C# and organizes its presentation of C# according to the key principles of object-oriented programming and the .NET framework. - Using end-of-chapter exercises, incrementally develops a cohesive application programming tutorial.
Front Cover 1
C# 2.0: Practical Guide for Programmers 6
Copyright Page 7
Contents 10
Preface 16
Chapter 1. Introducing C# and .NET 22
1.1 What Is C#? 22
1.2 What Is the .NET Framework? 23
1.3 Project Exercise 26
1.4 Syntax Notation 27
Chapter 2. Classes, Objects, and Namespaces 30
2.1 Classes and Objects 31
2.2 Access Modifiers 33
2.3 Namespaces 35
2.4 Compilation Units 40
2.5 Compilation and Execution 43
Chapter 3. Class Members and Class Reuse 50
3.1 Fields and Methods 50
3.2 Parameter Passing 58
3.3 Class Reuse 66
Chapter 4. Unified Type System 76
4.1 Reference Types 77
4.2 Value Types 77
4.3 Literals 84
4.4 Conversions 85
4.5 Boxing and Unboxing 87
4.6 The Object Root Class 88
4.7 Arrays 97
4.8 Strings 100
Chapter 5. Operators, Assignments, and Expressions 104
5.1 Operator Precedence and Associativity 104
5.2 Assignment Operators 105
5.3 Conditional Operator 107
5.4 Null Coalescing Operator 108
5.5 Conditional Logical Operators 109
5.6 Logical Operators 110
5.7 Equality Operators 113
5.8 Relational Operators 115
5.9 Shift Operators 117
5.10 Arithmetic Operators 118
5.11 Unary Operators 122
5.12 Other Primary Operators 124
5.13 Overloadable Operators 125
Chapter 6. Statements and Exceptions 128
6.1 Block Statement 128
6.2 Declaration Statements 129
6.3 Embedded Statements 130
6.4 Exceptions and Exception Handling 138
Chapter 7. Advanced Types, Polymorphism, and Accessors 150
7.1 Delegates and Events 151
7.2 Abstract Classes 157
7.3 Interfaces 159
7.4 Polymorphism and Virtual Methods 164
7.5 Properties 171
7.6 Indexers 176
7.7 Nested Types 178
7.8 Other Modifiers 180
Chapter 8. Collections and Generics 184
8.1 Collections 184
8.2 Generics 201
Chapter 9. Resource Disposal, Input/Output, and Threads 206
9.1 Resource Disposal 206
9.2 Input/Output 209
9.3 Threads 214
Chapter 10. Reflection and Attributes 232
10.1 Reflection 232
10.2 Attributes 236
10.3 Where to Go from Here 244
Appendix A. C# 2.0 Grammar 248
A.1 Lexical Grammar 248
A.2 Syntactic Grammar 252
A.3 Generics 259
Appendix B. Predefined XML Tags for Documentation Comments 262
References 264
Index 266
Erscheint lt. Verlag | 30.3.2005 |
---|---|
Sprache | englisch |
Themenwelt | Sachbuch/Ratgeber |
Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge | |
Informatik ► Software Entwicklung ► Objektorientierung | |
ISBN-10 | 0-08-048843-9 / 0080488439 |
ISBN-13 | 978-0-08-048843-1 / 9780080488431 |
Haben Sie eine Frage zum Produkt? |
Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine
Geräteliste und zusätzliche Hinweise
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich