X hits on this document

973 views

0 shares

0 downloads

0 comments

3 / 396

Table of Contents

Table of Contents

1. Introduction1

1.1 Hello world1

1.2 Program structure2

1.3 Types and variables4

1.4 Expressions6

1.5 Statements8

1.6 Classes and objects11

1.6.1 Members12

1.6.2 Accessibility12

1.6.3 Base classes12

1.6.4 Fields13

1.6.5 Methods14

1.6.5.1 Parameters14

1.6.5.2 Method body and local variables15

1.6.5.3 Static and instance methods16

1.6.5.4 Virtual, override, and abstract methods17

1.6.5.5 Method overloading19

1.6.6 Other function members19

1.6.6.1 Constructors21

1.6.6.2 Properties21

1.6.6.3 Indexers22

1.6.6.4 Events22

1.6.6.5 Operators23

1.6.6.6 Destructors23

1.7 Structs23

1.8 Arrays25

1.9 Interfaces26

1.10 Enums27

1.11 Delegates28

1.12 Attributes29

2. Lexical structure31

2.1 Programs31

2.2 Grammars31

2.2.1 Grammar notation31

2.2.2 Lexical grammar32

2.2.3 Syntactic grammar32

2.3 Lexical analysis32

2.3.1 Line terminators33

2.3.2 Comments33

2.3.3 White space35

2.4 Tokens35

2.4.1 Unicode character escape sequences35

2.4.2 Identifiers36

2.4.3 Keywords38

2.4.4 Literals38

2.4.4.1 Boolean literals38

2.4.4.2 Integer literals38

2.4.4.3 Real literals40

Copyright Microsoft Corporation 1999-2003. All Rights Reserved.iii

Document info
Document views973
Page views973
Page last viewedThu Dec 08 20:48:09 UTC 2016
Pages396
Paragraphs9401
Words133190

Comments