13.07.2015 Views

C# Language Specification - Willy .Net

C# Language Specification - Willy .Net

C# Language Specification - Willy .Net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>C#</strong> LANGUAGE SPECIFICATION9.3.3 White space..................................................................................................................................... 549.4 Tokens ......................................................................................................................................................... 549.4.1 Unicode escape sequences .............................................................................................................. 549.4.2 Identifiers........................................................................................................................................ 559.4.3 Keywords........................................................................................................................................ 569.4.4 Literals ............................................................................................................................................ 579.4.5 Operators and punctuators .............................................................................................................. 629.5 Pre-processing directives............................................................................................................................. 629.5.1 Conditional compilation symbols ................................................................................................... 639.5.2 Pre-processing expressions ............................................................................................................. 639.5.3 Declaration directives ..................................................................................................................... 649.5.4 Conditional compilation directives................................................................................................. 659.5.5 Diagnostic directives....................................................................................................................... 679.5.6 Region control................................................................................................................................. 679.5.7 Line directives................................................................................................................................. 6810. Basic concepts................................................................................................................................................ 6910.1 Application startup .................................................................................................................................... 6910.2 Application termination............................................................................................................................. 6910.3 Declarations............................................................................................................................................... 7010.4 Members.................................................................................................................................................... 7210.4.1 Namespace members .................................................................................................................... 7210.4.2 Struct members ............................................................................................................................. 7210.4.3 Enumeration members .................................................................................................................. 7310.4.4 Class members .............................................................................................................................. 7310.4.5 Interface members......................................................................................................................... 7310.4.6 Array members ............................................................................................................................. 7310.4.7 Delegate members......................................................................................................................... 7310.5 Member access .......................................................................................................................................... 7310.5.1 Declared accessibility ................................................................................................................... 7410.5.2 Accessibility domains ................................................................................................................... 7410.5.3 Protected access for instance members......................................................................................... 7710.5.4 Accessibility constraints ............................................................................................................... 7710.6 Signatures and overloading ....................................................................................................................... 7810.7 Scopes........................................................................................................................................................ 7910.7.1 Name hiding.................................................................................................................................. 8110.8 Namespace and type names....................................................................................................................... 8310.8.1 Fully qualified names.................................................................................................................... 8410.9 Automatic memory management............................................................................................................... 8510.10 Execution order ....................................................................................................................................... 8711. Types .............................................................................................................................................................. 8911.1 Value types ................................................................................................................................................ 8911.1.1 Default constructors...................................................................................................................... 9011.1.2 Struct types ................................................................................................................................... 9011.1.3 Simple types.................................................................................................................................. 9111.1.4 Integral types................................................................................................................................. 9111.1.5 Floating point types....................................................................................................................... 9211.1.6 The decimal type....................................................................................................................... 9411.1.7 The bool type.............................................................................................................................. 9411.1.8 Enumeration types ........................................................................................................................ 9411.2 Reference types ......................................................................................................................................... 9411.2.1 Class types .................................................................................................................................... 9511.2.2 The object type......................................................................................................................... 9511.2.3 The string type......................................................................................................................... 95vi

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!