Members
Members Namespaces and types have members. The members of an entity are generally available through the use of a qualified name that starts with a reference to the entity, followed by a “.” token, followed by the name of the member. MembersCiteste tot ... 528 cuvinte
Dimensiune mica - fara poza |
|
|
Class declarations
Class declarations A class-declaration is a type-declaration (§9.5) that declares a new class. class-declaration: attributesopt class-modifiersopt class identifier class-baseopt class-body ;opt A class-declaration coCiteste tot ... 865 cuvinte
Dimensiune mica - fara poza |
|
|
Class members
Class members The members of a class consist of the members introduced by its class-member-declarations and the members inherited from the direct base class. class-member-declarations: class-member-declaration class-member-declarations cCiteste tot ... 1919 cuvinte
Dimensiune medie - fara imagini |
|
|
The try statement
The try statement The try statement provides a mechanism for catching exceptions that occur during execution of a block. The try statement furthermore provides the ability to specify a block of code that is always executed when control leavesCiteste tot ... 960 cuvinte
Dimensiune mica - fara poza |
|
|
Automatic memory management
Automatic memory management C# employs automatic memory management, which frees developers from manually allocating and freeing the memory occupied by objects. Automatic memory management policies are implemented by a garbage collector. The meCiteste tot ... 251 cuvinte
Dimensiune mica - fara poza |
|
|
Conditional operator
Conditional operator The ?: operator is called the conditional operator. It is at times also called the ternary operator. conditional-expression: conditional-or-expression conditional-or-expression ? expression : expression A conCiteste tot ... 338 cuvinte
Dimensiune mica - fara poza |
|
|
Conditional logical operators
Conditional logical operators The && and || operators are called the conditional logical operators. They are also called the “short-circuiting” logical operators. conditional-and-expression: inclusive-or-expression conditional-andCiteste tot ... 677 cuvinte
Dimensiune mica - fara poza |
|
|
Reference types: The string type
Reference types A reference type is a class type, an interface type, an array type, or a delegate type. reference-type: class-type interface-type array-type delegate-type class-type: type-name object string interface-type: typeCiteste tot ... 335 cuvinte
Dimensiune mica - fara poza |
|
|
Type declarations
Type declarations A type-declaration is a class-declaration (§10.1), a struct-declaration (§11), an interface-declaration (§13.1), an enum-declaration (§14.1), or a delegate-declaration (§15.1). type-decCiteste tot ... 175 cuvinte
Dimensiune mica - fara poza |
|
|
Iteration statements
Iteration statements Iteration statements repeatedly execute an embedded statement. iteration-statement: while-statement do-statement for-statement foreach-statement The while statement The while statement conditionally executes aCiteste tot ... 1746 cuvinte
Dimensiune medie - fara imagini |
|
|
Value types: Struct types, Simple, Integral, Floating
Value types A value type is either a struct type or an enumeration type. C# provides a set of predefined struct types called the simple types. The simple types are identified through reserved words, and are further subdivided into numeric typCiteste tot ... 2373 cuvinte
Dimensiune medie - fara imagini |
|
|
Scopes - Name hiding
Scopes The scope of a name is the region of program text within which it is possible to refer to the entity declared by the name without qualification of the name. Scopes can be nested, and an inner scope may redeclare the meaning of a name frCiteste tot ... 1275 cuvinte
Dimensiune mica - fara poza |
|
|
Variable categories
Variable categories C# defines seven categories of variables: static variables, instance variables, array elements, value parameters, reference parameters, output parameters, and local variables. The sections that follow describe each of theseCiteste tot ... 852 cuvinte
Dimensiune mica - fara poza |
|
|
Delegates
Delegates Delegates enable scenarios that some other languages have addressed with function pointers. However, unlike function pointers, delegates are object-oriented, type-safe, and secure. A delegate declaration defines a class that is dCiteste tot ... 272 cuvinte
Dimensiune mica - fara poza |
|
|
Indexers
Indexers An indexer is a member that enables an object to be indexed in the same way as an array. Indexers are declared using indexer-declarations: indexer-declaration: attributesopt indexer-modifiersopt indexer-declarator indexerCiteste tot ... 729 cuvinte
Dimensiune mica - fara poza |
|
|
Classes
Classes Class declarations define new reference types. A class can inherit from another class, and can implement interfaces. Class members can include constants, fields, methods, properties, indexers, events, operators, instance constructorCiteste tot ... 2057 cuvinte
Dimensiune medie - fara imagini |
|
|
Interfaces
Interfaces An interface defines a contract. A class or struct that implements an interface must adhere to its contract. Interfaces can contain methods, properties, indexers, and events as members. The example interface IExample Citeste tot ... 222 cuvinte
Dimensiune mica - fara poza |
|
|
Shift operators
Shift operators The << and >> operators are used to perform bit shifting operations. shift-expression: additive-expression shift-expression << additive-expression shift-expression >> additive-expressionCiteste tot ... 449 cuvinte
Dimensiune mica - fara poza |
|
|
Lexical analysis
Lexical analysis The input production defines the lexical structure of a C# source file. Each source file in a C# program must conform to this lexical grammar production. input: input-sectionopt input-section: input-section-part inputCiteste tot ... 466 cuvinte
Dimensiune mica - fara poza |
|
|
Methods - Method parameters
Methods A method is a member that implements a computation or action that can be performed by an object or class. Methods are declared using method-declarations: method-declaration: method-header method-body method-header: attributesoptCiteste tot ... 3670 cuvinte
Dimensiune medie - fara imagini |
|
|
Alte pagini