Download C# Language Specificatio. Version 3.0 PDF

Read or Download C# Language Specificatio. Version 3.0 PDF

Best programming: programming languages books

Effektiv Starten mit Turbo C++: Professionelle Programmierung von Anfang an

Oberall ist die Rede von . C. . bruner hiufiger wird der Wunsch, ohne Kennt nisse anderer Programmiersprachen in 'C' einsteigen zu konnen. Genau dies ist die Zielsetzung des vorliegenden Buches. Ausgehend von ganz einfachen Beispielen wird der Leser Schritt fiir Schritt mit allen Moglichkeiten von 'C' und dem Nachfolger 'C++' vertraut gemacht, ohne daB dafiir Vorkenntnisse in anderen Programmiersprachen notig sind.

Objektorientiertes Programmieren: Mit Beispielen und Übungen in C++

"OOP" ist "in". Die modernste paintings, Programme zu schreiben, wird in diesem didaktisch vorz}glich aufbereiteten Lehrbuch vermittelt. Das Schwergewicht der Darstellung liegt auf der methodischen Darstellung der Gurndlagen und Konzepte pbjektorientierten Programmierens: Objekte, Klassen, Vererbung,Instanzen, Botschaften und abstrakte Datentypen werden verdeutlicht.

Additional resources for C# Language Specificatio. Version 3.0

Sample text

The following example declares an enum type named Alignment with an underlying type of sbyte. enum Alignment: sbyte { Left = -1, Center = 0, Right = 1 } Copyright  Microsoft Corporation 1999-2007. All Rights Reserved. 29 C# LANGUAGE SPECIFICATION As shown by the previous example, an enum member declaration can include a constant expression that specifies the value of the member. The constant value for each enum member must be in the range of the underlying type of the enum. When an enum member declaration does not explicitly specify a value, the member is given the value zero (if it is the first member in the enum type) or the value of the textually preceding enum member plus one.

The indexer makes it possible to index List instances with int values. ToUpper(); } Copyright  Microsoft Corporation 1999-2007. All Rights Reserved. 23 C# LANGUAGE SPECIFICATION Indexers can be overloaded, meaning that a class can declare multiple indexers as long as the number or types of their parameters differ. 4 Events An event is a member that enables a class or object to provide notifications. An event is declared like a field except that the declaration includes an event keyword and the type must be a delegate type.

The following example allocates a onedimensional, a two-dimensional, and a three-dimensional array. int[] a1 = new int[10]; int[,] a2 = new int[10, 5]; int[,,] a3 = new int[10, 5, 2]; The a1 array contains 10 elements, the a2 array contains 50 (10 × 5) elements, and the a3 array contains 100 (10 × 5 × 2) elements. The element type of an array can be any type, including an array type. An array with elements of an array type is sometimes called a jagged array because the lengths of the element arrays do not all have to be the same.

Download PDF sample

Rated 4.04 of 5 – based on 11 votes