Pre-processing directives
Pre-processing directives The pre-processing directives provide the ability to conditionally skip sections of source files, to report error and warning conditions, and to delineate distinct regions of source code. The term “pre-processing direCiteste tot ... 1450 cuvinte
Dimensiune mica - fara poza |
|
|
Expressions
Expressions C# includes unary operators, binary operators, and one ternary operator. The following table summarizes the operators, listing them in order of precedence from highest to lowest: Section CategoryCiteste tot ... 551 cuvinte
Dimensiune mica - fara poza |
|
|
Member lookup - Base types
Member lookup A member lookup is the process whereby the meaning of a name in the context of a type is determined. A member lookup may occur as part of evaluating a simple-name (§7.5.2) or a member-access (§7.5.4) in an expressionCiteste tot ... 3972 cuvinte
Dimensiune medie - fara imagini |
|
|
Variables and parameters
Variables and parameters Variables represent storage locations. Every variable has a type that determines what values can be stored in the variable. Local variables are variables that are declared in methods, properties, or indexers. A local vCiteste tot ... 828 cuvinte
Dimensiune mica - fara poza |
|
|
Namespace declarations
Namespace declarations A namespace-declaration consists of the keyword namespace, followed by a namespace name and body, optionally followed by a semicolon. namespace-declaration: namespace qualified-identifier namespace-body ;opt qCiteste tot ... 256 cuvinte
Dimensiune mica - fara poza |
|
|
Operators
Operators An operator is a member that defines the meaning of an expression operator that can be applied to instances of the class. Operators are declared using operator-declarations: operator-declaration: attributesopt operator-modifiersCiteste tot ... 1133 cuvinte
Dimensiune mica - fara poza |
|
|
Automatic memory management
Automatic memory management Manual memory management requires developers to manage the allocation and de-allocation of blocks of memory. Manual memory management is both time-consuming and difficult. In C#, automatic memory management is proviCiteste tot ... 417 cuvinte
Dimensiune mica - fara poza |
|
|
Attributes - Attribute classes
Attributes Much of the C# language enables the programmer to specify declarative information about the entities defined in the program. For example, the accessibility of a method in a class is specified by decorating it with the method-modifierCiteste tot ... 2557 cuvinte
Dimensiune medie - fara imagini |
|
|
Constant expressions
Expression An expression is either a conditional-expression or an assignment. expression: conditional-expression assignment Constant expressions A constant-expression is an expression that can be fully evaluated at compile-time. coCiteste tot ... 423 cuvinte
Dimensiune mica - fara poza |
|
|
Definite assignment
Definite assignment At a given location in the executable code of a function member, a variable is said to be definitely assigned if the compiler can prove, by static flow analysis, that the variable has been automatically initialized or has beeCiteste tot ... 674 cuvinte
Dimensiune mica - fara poza |
|
|
Destructors
Destructors A destructor is a member that implements the actions required to destruct an instance of a class. A destructors is declared using a destructor-declaration: destructor-declaration: attributesopt ~ identifier ( ) blockCiteste tot ... 286 cuvinte
Dimensiune mica - fara poza |
|
|
Statements
Statements C# borrows most of its statements directly from C and C++, though there are some noteworthy additions and modifications. The table below lists the kinds of statements that can be used, and provides an example for each.Citeste tot ... 488 cuvinte
Dimensiune mica - fara poza |
|
|
Standard conversions
Standard conversions The standard conversions are those pre-defined conversions that can occur as part of a user-defined conversion. Standard implicit conversions The following implicit conversions are classified as standard implicit coCiteste tot ... 92 cuvinte
Dimensiune mica - fara poza |
|
|
Structs
Structs The list of similarities between classes and structs is long—structs can implement interfaces, and can have the same kinds of members as classes. Structs differ from classes in several important ways, however: structs are value types raCiteste tot ... 189 cuvinte
Dimensiune mica - fara poza |
|
|
Boxing and unboxing: Boxing conversions
Boxing and unboxing Boxing and unboxing is a central concept in C#’s type system. It provides a bridge between value-types and reference-types by permitting any value of a value-type to be converted to and from type object. Boxing and unboxinCiteste tot ... 457 cuvinte
Dimensiune mica - fara poza |
|
|
End points and reachability
End points and reachability Every statement has an end point. In intuitive terms, the end point of a statement is the location that immediately follows the statement. The execution rules for composite statements (statements that contain embeddCiteste tot ... 460 cuvinte
Dimensiune mica - fara poza |
|
|
Assignment operators
Assignment operators The assignment operators assign a new value to a variable, a property, or an indexer element. assignment: unary-expression assignment-operator expression assignment-operator: one of = += -= *= /= %=Citeste tot ... 1074 cuvinte
Dimensiune mica - fara poza |
|
|
Relational and type testing operators
Relational and type testing operators The ==, !=, <, >, <=, >=, is and as operators are called the relational and type testing operators. relational-expression: shift-expression relational-expression < shift-expressionCiteste tot ... 2000 cuvinte
Dimensiune medie - fara imagini |
|
|
The empty statement
The empty statement An empty-statement does nothing. empty-statement: ; An empty statement is used when there are no operations to perform in a context where a statement is required. Execution of an empty statement simply transfers cCiteste tot ... 81 cuvinte
Dimensiune mica - fara poza |
|
|
Static constructors
Static constructors A static constructor is a member that implements the actions required to initialize a class. Static constructors are declared using static-constructor-declarations: static-constructor-declaration: attributesopt static Citeste tot ... 181 cuvinte
Dimensiune mica - fara poza |
|
|
Alte pagini