Addison.Wesley.The.CSharp.Programming.Language.4th.Edition.Oct.2010.pdf
(
23500 KB
)
Pobierz
The C# Programming Language
Fourth Edition
Download at www.wowebook.com
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
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
Contents
Foreword xi
Preface xiii
About the Authors xv
About the Annotators
xvii
1
Introduction 1
1.1
Hello, World 3
1.2
Program Structure
4
1.3
Ty p e s a n d Va r i a b l e s
6
1.4
Expressions 13
1.5
Statements 16
1.6
Classes and Objects
21
1.7
Structs 50
1.8
Arrays 53
1.9
Interfaces
56
1.10
Enums 58
1.11
Delegates
60
1.12
Attributes
61
2
Lexical Structure 65
2.1
Programs 65
2.2
Grammars 65
2.3
Lexical Analysis
67
2.4
To k e n s 71
2.5
Preprocessing Directives
85
v
Download at www.wowebook.com
Plik z chomika:
wilku0
Inne pliki z tego folderu:
Microsoft.Press.Developers.Guide.to.Microsoft.Enterprise.Library.5.CSharp.Edition.Aug.2010.pdf
(6457 KB)
Addison.Wesley.The.CSharp.Programming.Language.4th.Edition.Oct.2010.pdf
(23500 KB)
Apress.Beginning.CSharp.Object-Oriented.Programming.May.2011.pdf
(24090 KB)
Apress.Illustrated.CSharp.2010.Dec.2010.pdf
(10605 KB)
Apress.Introducing.Visual.CSharp.2010.Nov.2010.pdf
(18648 KB)
Inne foldery tego chomika:
AJAX
Drupal
Flash
Java
Joomla
Zgłoś jeśli
naruszono regulamin