Addison.Wesley.The.CSharp.Programming.Language.4th.Edition.Oct.2010.pdf

(23500 KB) Pobierz
833376276.037.png
The C# Programming Language
Fourth Edition
Download at www.wowebook.com
833376276.038.png 833376276.039.png
The C#
Programming
Language
Fourth Edition
Anders Hejlsberg
Mads Torgersen
Scott Wiltamuth
Peter Golde
Upper Saddle River, NJ Boston Indianapolis San Francisco
New York To ro n t o Montreal London Munich Paris Madrid
Capetown Sydney To k y o Singapore Mexico City
Download at www.wowebook.com
833376276.040.png 833376276.001.png 833376276.002.png 833376276.003.png 833376276.004.png 833376276.005.png 833376276.006.png 833376276.007.png 833376276.008.png 833376276.009.png 833376276.010.png 833376276.011.png 833376276.012.png 833376276.013.png 833376276.014.png 833376276.015.png 833376276.016.png 833376276.017.png 833376276.018.png 833376276.019.png 833376276.020.png 833376276.021.png 833376276.022.png 833376276.023.png 833376276.024.png 833376276.025.png 833376276.026.png 833376276.027.png 833376276.028.png 833376276.029.png 833376276.030.png 833376276.031.png
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 Unit-
ed States and/or other countries and is used under license from Microsoft.
Microsoft, Windows, Visual Basic, Visual C#, and Visual C++ are either registered trademarks or
trademarks of Microsoft Corporation in the U.S.A. and/or other countries/regions.
The authors 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@pearson.com
Visit us on the Web: informit.com/aw
Library of Congress Cataloging-in-Publication Data
The C# programming language / Anders Hejlsberg ... [et al.]. — 4th ed.
p. cm.
Includes index.
ISBN 978-0-321-74176-9 (hardcover : alk. paper)
1. C# (Computer program language) I. Hejlsberg, Anders.
QA76.73.C154H45 2010
005.13’3—dc22
2010032289
Copyright © 2011 Microsoft Corporation
All rights reserved. Printed in the United States of America. This publication is protected by copy-
right, 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
501 Boylston Street, Suite 900
Boston, MA 02116
Fax: (617) 671-3447
ISBN-13: 978-0-321-74176-9
ISBN-10: 0-321-74176-5
Te x t p r i n t e d i n t h e U n i t e d S t a t e s o n re c y c l e d p a p e r a t C o u r i e r i n We s t f o rd , M a s s a c h u s e t t s .
First printing, October 2010
Download at www.wowebook.com
833376276.032.png 833376276.033.png
Contents
xvii
1 Introduction 1
1.2 Program Structure
4
1.3 Ty p e s a n d Va r i a b l e s
6
1.6 Classes and Objects
21
1.9 Interfaces
56
1.11 Delegates
60
1.12 Attributes
61
67
2.5 Preprocessing Directives
85
v
Download at www.wowebook.com
833376276.034.png 833376276.035.png 833376276.036.png
Zgłoś jeśli naruszono regulamin