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 SPECIFICATION17.2.6 Nested types................................................................................................................................ 21517.2.7 Reserved member names ............................................................................................................ 21717.3 Constants ................................................................................................................................................. 21917.4 Fields ....................................................................................................................................................... 22017.4.1 Static and instance fields............................................................................................................. 22117.4.2 Readonly fields ........................................................................................................................... 22217.4.3 Volatile fields.............................................................................................................................. 22317.4.4 Field initialization ....................................................................................................................... 22417.4.5 Variable initializers..................................................................................................................... 22417.5 Methods ................................................................................................................................................... 22717.5.1 Method parameters ..................................................................................................................... 22817.5.2 Static and instance methods........................................................................................................ 23317.5.3 Virtual methods........................................................................................................................... 23317.5.4 Override methods........................................................................................................................ 23517.5.5 Sealed methods ........................................................................................................................... 23617.5.6 Abstract methods ........................................................................................................................ 23717.5.7 External methods ........................................................................................................................ 23817.5.8 Method body ............................................................................................................................... 23917.5.9 Method overloading.................................................................................................................... 23917.6 Properties................................................................................................................................................. 23917.6.1 Static and instance properties...................................................................................................... 24017.6.2 Accessors .................................................................................................................................... 24017.6.3 Virtual, sealed, override, and abstract accessors......................................................................... 24517.7 Events ...................................................................................................................................................... 24617.7.1 Field-like events.......................................................................................................................... 24817.7.2 Event accessors ........................................................................................................................... 24917.7.3 Static and instance events ........................................................................................................... 25017.7.4 Virtual, sealed, override, and abstract accessors......................................................................... 25017.8 Indexers ................................................................................................................................................... 25117.8.1 Indexer overloading .................................................................................................................... 25417.9 Operators ................................................................................................................................................. 25417.9.1 Unary operators........................................................................................................................... 25517.9.2 Binary operators.......................................................................................................................... 25617.9.3 Conversion operators .................................................................................................................. 25617.10 Instance constructors ............................................................................................................................. 25817.10.1 Constructor initializers.............................................................................................................. 25917.10.2 Instance variable initializers ..................................................................................................... 25917.10.3 Constructor execution ............................................................................................................... 25917.10.4 Default constructors.................................................................................................................. 26117.10.5 Private constructors................................................................................................................... 26217.10.6 Optional instance constructor parameters................................................................................. 26217.11 Static constructors ................................................................................................................................. 26217.12 Destructors............................................................................................................................................. 26418. Structs .......................................................................................................................................................... 26718.1 Struct declarations ................................................................................................................................... 26718.1.1 Struct modifiers........................................................................................................................... 26718.1.2 Struct interfaces .......................................................................................................................... 26718.1.3 Struct body.................................................................................................................................. 26818.2 Struct members........................................................................................................................................ 26818.3 Class and struct differences ..................................................................................................................... 26818.3.1 Value semantics .......................................................................................................................... 26818.3.2 Inheritance .................................................................................................................................. 26918.3.3 Assignment ................................................................................................................................. 26918.3.4 Default values ............................................................................................................................. 269x

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

Saved successfully!

Ooh no, something went wrong!