2006 aw essential c sharp v2 0

1.1K 54 0
2006   aw   essential c sharp v2 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Essential C# 2.0 By Mark Michaelis Publisher: Addison Wesley Professional Pub Date: July 13, 2006 Print ISBN-10: 0321150775 Print ISBN-13: 978-0-321-15077-6 Pages: 768 Table of Contents | Index "Essential C# 2.0 pulls off a very difficult task The early chapters are comprehensible by beginning developers, while the later chapters pull no punches and provide the experienced developer with the detailed information they need to make the most of C# 2.0 Starting with the first chapter, Mark has successfully interwoven tidbits of information useful to even the most advanced developer while keeping the book approachable." Chris Kinsman, chief architect, Vertafore, Microsoft Regional Director "How refreshing! This book deals with C# thoroughly, rather than skimming over the whole NET framework It is valuable to newcomers and professionals alike." Jon Skeet, C# MVP "Essential C# 2.0 is a one-stop shop for an experienced programmer looking to ramp up on one of the hottest languages around today Mark delivers an intelligent and detailed tour of C#, providing newcomers to the language with a solid foundation of skill on which to build their next generation of applications." Stephen Toub, technical editor, MSDN Magazine "This book provides complete, up-to-date coverage of all the programming constructs in C# Masterfully organized, it allows beginning programmers to get on board and leads more experienced programmers into the world of structured programming Because of its unwavering focus on the essential programming constructs of C#such as generics, delegates, and much morethis book is indispensable For programmers who want to solve their day-to-day programming issues using the latest features this modern programming language has to offer, this book is indispensable." Narendra Poflee, IT integration specialist, Itron Inc "Essential C# 2.0 is an ideal book for all programmers interested in C# If you are a beginner, you will quickly learn the basics of C# programming and become familiar with the concepts The flow of the text is easy to follow and does a great job of not repeating concepts that have already been covered For the experienced programmer, this book has priceless nuggets embedded within its pages, making it a great read for programmers who are already familiar with C# This will be a book that I will keep next to my computer for years to come." Michael Stokesbary, software engineer, Itron Inc Essential C# 2.0 is a clear, concise guide to C#including the features new to C# 2.0 The book clearly presents material for beginners and experts and provides contrasts and comparisons between C# and other languages The C# language is covered comprehensively and each important construct is illustrated with succinct code examples Complete code examples are available online Mark Michaelis has organized the material for quick access Graphical "mind maps" at the beginning of each chapter show what material is covered and how each topic relates to the whole Following the C# introduction, readers will learn about C# primitive data types, value types, reference types, type conversions, and arrays Operators and control flow, loops, conditional logic, and sequential programming Methods, parameters, exception handling, and structured programming Classes, inheritance, structures, interfaces, and object-oriented programming Well-formed types, operator overloading, namespaces, and garbage collection Generics, collections, and iterators Reflection, attributes, and declarative programming Threading, synchronization, and multi-threaded patterns Interoperability and unsafe code The Common Language Infrastructure that underlies C# C# 2.0 has a multitude of new features that make the language even more powerful, productive, and efficient These new features are thoroughly covered in this book A separate appendix on C# 2.0 topics helps readers quickly find new features of the language Whether you're just starting out as a programmer, are an experienced developer looking to learn C#, or are a seasoned C# programmer interested in learning the new features of C# 2.0, Essential C# 2.0 gives you just what you need to quickly get up and running writing C# applications Essential C# 2.0 By Mark Michaelis Publisher: Addison Wesley Professional Pub Date: July 13, 2006 Print ISBN-10: 0321150775 Print ISBN-13: 978-0-321-15077-6 Pages: 768 Table of Contents | Index Copyright Praise for Essential C# 2.0 Acknowledgments About the Author Chapter 1 Introducing C# Hello, World C# Syntax Fundamentals Working with Variables Console Input and Output Comments Common Intermediate Language and ILDASM Summary Chapter 2 Data Types Fundamental Numeric Types More Fundamental Types null and void Categories of Types Nullable Modifier Conversions between Data Types Arrays Summary Chapter 3 Operators and Control Flow Operators Introducing Flow Control Code Blocks ({}) Scope Boolean Expressions Bitwise Operators (, |, &, ^, ~) Control Flow Statements, Continued Jump Statements C# Preprocessor Directives Summary Chapter 4 Methods and Parameters Calling a Method Declaring a Method The using Directive Returns and Parameters on Main() Parameters Recursion Method Overloading Basic Error Handling with Exceptions Summary Chapter 5 Classes Defining and Instantiating a Class Instance Fields Instance Methods Using the this Keyword Access Modifiers Constructors Static const and readonly Modifiers Properties Nested Classes Partial Classes Summary Chapter 6 Inheritance Derivation Overriding the Base Class Abstract Classes Everything Ultimately Derives from System.Object Verifying the Underlying Type with the is Operator Conversion Using the as Operator Summary Chapter 7 Interfaces Introducing Interfaces Polymorphism through Interfaces Interface Implementation Casting between the Implementing Class and Its Interfaces Multiple Interface Inheritance Implementing Multiple Inheritance via Interfaces Versioning Interfaces Compared with Classes Summary Chapter 8 Value Types Structs Boxing Enums Summary Chapter 9 Well-Formed Types Overriding object Members Operator Overloading Defining Namespaces XML Comments Garbage Collection Resource Cleanup Summary Chapter 10 Exception Handling Multiple Exception Types Catching Exceptions General Catch Block Guidelines for Exception Handling Defining Custom Exceptions Summary Chapter 11 Generics C# without Generics Introducing Generic Types Constraints Generic Methods Generic Internals Summary Chapter 12 Collections Primary Collection Classes Introducing Collection Class Interfaces Providing an Index Operator Returning Null or an Empty Collection Iterators Summary Chapter 13 Delegates and Events Method Pointers Multicast Delegates and the Observer Pattern Events Summary Chapter 14 Reflection and Attributes Reflection Attributes Summary Chapter 15 Multithreading Running and Controlling a Separate Thread Passing Parameters to Threads Thread Pooling Unhandled Exceptions Synchronization Summary Chapter 16 Multithreading Patterns Asynchronous Results Pattern Background Worker Pattern Windows Forms Summary Chapter 17 Platform Interoperability and Unsafe Code Platform Invoke Pointers and Addresses Summary Chapter 18 The Common Language Infrastructure Defining the Common Language Infrastructure (CLI) CLI Implementations C# Compilation to Machine Code Runtime Application Domains Assemblies, Manifests, and Modules Common Intermediate Language (CIL) Common Type System (CTS) Common Language Specification (CLS) Base Class Library (BCL) Metadata Summary Appendix A Downloading and Installing the C# Compiler and the CLI Platform Microsoft's NET Mono Appendix B Complete Source Code Listings Chapters 3 and 4 Chapter 9 Chapter 12 Chapter 14 Chapter 17 Appendix C C# 2.0 Topics Index Copyright Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals The NET logo is either a registered trademark or trademark of Microsoft Corporation in the United States and/or other countries and is used under license from Microsoft The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests For more information, please contact: U.S Corporate and Government Sales (800) 382-3419 corpsales@pearsontechgroup.com For sales outside the United States please contact: International Sales international@pearsoned.com Visit us on the Web: www.awprofessional.com Library of Congress Cataloging-in-Publication Data: Michaelis, Mark Essential C# 2.0 / Mark Michaelis p cm Includes index ISBN 0-321-15077-5 (pbk : alk paper) C# (Computer program language) I Title QA76.73.C154M523 2006 005.13'3dc22 2006009699 Copyright © 2007 Pearson Education, Inc All rights reserved Printed in the United States of America This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise For information regarding permissions, write to: Pearson Education, Inc Rights and Contracts Department 75 Arlington Street, Suite 300 Boston, MA 02116 Fax: (617) 848-7047 Text printed in the United States on recycled paper at Courier in Stoughton, Massachusetts First printing, July 2006 Dedication To my family: Elisabeth, Benjamin, Hanna, and Abigail Microsoft NET Development Series John Montgomery, Series Advisor Don Box, Series Advisor Martin Heller, Series Editor The Microsoft NET Development Series is supported and developed by the leaders and experts of Microsoft development technologies including Microsoft architects and DevelopMentor instructors The books in this series provide a core resource of information and understanding every developer needs in order to write effective applications and managed code Learn from the leaders how to maximize your use of the NET Framework and its programming languages Titles in the Series Brad Abrams, NET Framework Standard Library Annotated Reference Volume 1: Base Class Library and Extended Numerics Library, 0-321-15489-4 Christian Nagel, Enterprise Services with the NET Framework: Developing Distributed Business Solutions with NET Enterprise Services, 0-321-24673-X Brad Abrams and Tamara Abrams, NET Framework Standard Library Annotated Reference, Volume 2: Networking Library, Reflection Library, and XML Library, 0321-19445-4 Brian Noyes, Data Binding with Windows Forms 2.0: Programming Smart Client Data Applications with NET, 0-32126892-X Fritz Onion, Essential ASP.NET with Examples in C#, 0-201-76040-1 Keith Ballinger, NET Web Services: Architecture and Implementation, 0-321- 11359-4 Fritz Onion, Essential ASP.NET with Examples in Visual Basic NET, 0-201- ... QA76.73 .C1 54M523 200 6 00 5.13'3dc22 200 60 09699 Copyright © 200 7 Pearson Education, Inc All rights reserved Printed in the United States of America This publication is protected by copyright, and permission must be... Defining Custom Exceptions Summary Chapter 11 Generics C# without Generics Introducing Generic Types Constraints Generic Methods Generic Internals Summary Chapter 12 Collections Primary Collection Classes... Defining Namespaces XML Comments Garbage Collection Resource Cleanup Summary Chapter 10 Exception Handling Multiple Exception Types Catching Exceptions General Catch Block Guidelines for Exception Handling

Ngày đăng: 25/03/2019, 16:43

Từ khóa liên quan

Mục lục

  • Essential C# 2.0

  • Table of Contents

  • Copyright

    • Praise for Essential C# 2.0

    • Acknowledgments

    • About the Author

    • Chapter 1. Introducing C#

      • Hello, World

      • C# Syntax Fundamentals

      • Working with Variables

      • Console Input and Output

      • Comments

      • Common Intermediate Language and ILDASM

      • Summary

      • Chapter 2. Data Types

        • Fundamental Numeric Types

        • More Fundamental Types

        • null and void

        • Categories of Types

        • Nullable Modifier

        • Conversions between Data Types

        • Arrays

        • Summary

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan