A programmer's guide to C# 5.0
A Programmer’s Guide to C# 5.0 is a book for software developers who want to truly understand C#. Whether you’ve worked with C# before or with another general-purpose programming language, each fast-paced, focused chapter will take you straight to the heart of a feature of C# and show you why it wor...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
New York :
Apress
c2012.
|
Edición: | 4th ed. 2012. |
Colección: | The expert's voice in .NET
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628774706719 |
Tabla de Contenidos:
- Title Page; Copyright Page; Dedication Page; Contents at a Glance; Table of Contents; Preface; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Who This Book Is For; How This Book Is Structured; Downloading the Code; Contacting the Author; Chapter 1 C# and the .NET Runtime and Libraries; Chapter 2 C# QuickStart and Developing in C#; Hello, Universe; Namespace and Using Statements; Namespaces and Assemblies; Basic Data Types; Classes, Structs, and Interfaces; Statements; Enums; Delegates and Events; Properties and Indexers; Attributes; Developing in C#
- Tools of NoteILDASM; Decompilers; Obfuscators; NGEN; Chapter 3 Classes 101; A Simple Class; Member Functions; ref and out Parameters; Overloading; Chapter 4 Base Classes and Inheritance; The Engineer Class; Simple Inheritance; Arrays of Engineers; Virtual Functions; Abstract Classes; Sealed Classes and Methods; Chapter 5 Exception Handling; What's Wrong with Return Codes?; Trying and Catching; Choosing the Catch Block; Passing Exceptions on to the Caller; Caller Beware; Caller Confuse; Caller Inform; User-Defined Exception Classes; Finally; Top-Level Exception Handlers
- Efficiency and OverheadDesign Guidelines; Exceptions Are Exceptional; Choosing the Right Exception for Wrapping; Exceptions Should be as Specific as Possible; Retry Logic; Rethrowing; Catch Only if You Have Something Useful to Do; Chapter 6 Member Accessibility and Overloading; Class Accessibility; Using Internal on Members; Expanding Internal Accessibility; Protected; Internal Protected; The Interaction of Class and Member Accessibility; Accessability Summary; Method Overloading; Method Hiding; Better Conversions; Variable-Length Parameter Lists; Default Arguments; Named Arguments
- Chapter 7 Other Class DetailsNested Classes; Other Nesting; Anonymous Types; Creation, Initialization, Destruction; Constructors; Private Constructors; Initialization; Destructors; Managing Nonmemory Resources; IDisposable and the Using Statement; IDisposable and Longer-Lived Objects; Static Fields; Static Member Functions; Static Constructors; Constants; Read-Only Fields; Extension Methods; Usage Guidelines; Object Initializers; Static Classes; Partial Classes and Methods; Chapter 8 Structs (Value Types); A Point Struct; Boxing and Unboxing; Structs and Constructors; Mutable Structs
- Design GuidelinesImmutable Classes; Chapter 9 Interfaces; A Simple Example; Working with Interfaces; The as Operator; Interfaces and Inheritance; Design Guidelines; Multiple Implementation; Explicit Interface Implementation; Implementation Hiding; Interfaces Based on Interfaces; Interfaces and Structs; Chapter 10 Versioning and Aliases; A Versioning Example; Coding for Versioning; Type Aliases; External Assembly Aliases; Chapter 11 Statements and Flow of Execution; Selection Statements; If; Switch; Iteration Statements; While; Do; For; Foreach; Jump Statements; Break; Continue; Goto; Return
- Other Statements