Table of Contents 4 страница
18.5.3 Pointer element access............................................................................................................. 436 18.5.4 The address-of operator........................................................................................................... 436 18.5.5 Pointer increment and decrement.............................................................................................. 437 18.5.6 Pointer arithmetic..................................................................................................................... 437 18.5.7 Pointer comparison.................................................................................................................. 438 18.5.8 The sizeof operator.................................................................................................................. 439 18.6 The fixed statement........................................................................................................................ 439 18.7 Fixed size buffers........................................................................................................................... 443 18.7.1 Fixed size buffer declarations.................................................................................................... 443 18.7.2 Fixed size buffers in expressions............................................................................................... 444 18.7.3 Definite assignment checking.................................................................................................... 445 18.8 Stack allocation.............................................................................................................................. 445 18.9 Dynamic memory allocation............................................................................................................ 446 A. Documentation comments............................................................................................................... 449 A.1 Introduction.................................................................................................................................... 449 A.2 Recommended tags......................................................................................................................... 450 A.2.1 <c>.......................................................................................................................................... 451 A.2.2 <code>.................................................................................................................................... 451 A.2.3 <example>............................................................................................................................... 452 A.2.4 <exception>............................................................................................................................. 452 A.2.5 <include>................................................................................................................................. 453 A.2.6 <list>....................................................................................................................................... 453 A.2.7 <para>..................................................................................................................................... 454 A.2.8 <param>.................................................................................................................................. 455 A.2.9 <paramref>.............................................................................................................................. 455 A.2.10 <permission>.......................................................................................................................... 455 A.2.11 <remark>............................................................................................................................... 456 A.2.12 <returns>............................................................................................................................... 456 A.2.13 <see>..................................................................................................................................... 457 A.2.14 <seealso>............................................................................................................................... 457 A.2.15 <summary>............................................................................................................................ 457 A.2.16 <value>.................................................................................................................................. 458 A.2.17 <typeparam>.......................................................................................................................... 458 A.2.18 <typeparamref>...................................................................................................................... 458 A.3 Processing the documentation file.................................................................................................... 459 A.3.1 ID string format........................................................................................................................ 459 A.3.2 ID string examples.................................................................................................................... 460 A.4 An example.................................................................................................................................... 464 A.4.1 C# source code........................................................................................................................ 464 A.4.2 Resulting XML......................................................................................................................... 466 B. Grammar........................................................................................................................................... 470 B.1 Lexical grammar............................................................................................................................. 470 B.1.1 Line terminators........................................................................................................................ 470 B.1.2 Comments................................................................................................................................ 470 B.1.3 White space............................................................................................................................. 471 B.1.4 Tokens..................................................................................................................................... 471 B.1.5 Unicode character escape sequences......................................................................................... 471 B.1.6 Identifiers................................................................................................................................. 471 B.1.7 Keywords................................................................................................................................ 472 B.1.8 Literals..................................................................................................................................... 473 B.1.9 Operators and punctuators......................................................................................................... 475 B.1.10 Pre-processing directives......................................................................................................... 475 B.2 Syntactic grammar.......................................................................................................................... 477 B.2.1 Basic concepts......................................................................................................................... 477 B.2.2 Types....................................................................................................................................... 478 B.2.3 Variables.................................................................................................................................. 479 B.2.4 Expressions.............................................................................................................................. 479 B.2.5 Statements............................................................................................................................... 486 B.2.6 Namespaces............................................................................................................................. 489 B.2.7 Classes.................................................................................................................................... 490 B.2.8 Structs..................................................................................................................................... 497 B.2.9 Arrays..................................................................................................................................... 498 B.2.10 Interfaces............................................................................................................................... 498 B.2.11 Enums.................................................................................................................................... 499 B.2.12 Delegates............................................................................................................................... 500 B.2.13 Attributes............................................................................................................................... 500 B.3 Grammar extensions for unsafe code................................................................................................ 502 C. References....................................................................................................................................... 505
|