Il linguaggio C# e il .NET runtime
Durata: 2 giorni | Prezzo: € 600,00
Descrizione
Il corso adatto per chi inizia con C# e vuole conoscere tutte le peculiarità del linguaggio.
Contenuti
Basic concepts
- Application startup
- Application termination
- Declarations
- Members
- General
- Namespace members
- Struct members
- Enumeration members
- Class members
- Interface members
- Array members
- Delegate members
- Member access
- Declared accessibility
- Accessibility domains
- Protected access
- Accessibility constraints
- Signatures and overloading
- Namespace and type names
- Unqualified names
- Fully qualified names
- Automatic memory management
- Execution order
- Types
- Reference types
- Class types
- The object type
- The dynamic type
- The string type
- Interface types
- Array types
- Delegate types
- Value types
- Default constructors
- Struct types
- Simple types
- Integral types
- Floating-point types
- The Decimal type
- The Bool type
- Enumeration types
- Nullable value types
- Boxing and unboxing
- Statements
- Block statements, checked, and unchecked statements
- Expression statements
- Declaration statements
- If statements
- Switch statements
- While statements
- Do statements
- For statements
- Break, continue, and goto statements
- Throw statements
- Return statements
- Try-catch statements
- Try-finally statements
- Try-catch-finally statements
- Foreach statements
- Using statements
- Lock statements
- Yield statements
- General rules for constant expressions
- General rules for simple expressions
- General rules for expressions with embedded expressions
- Invocation expressions and object creation expressions
- Simple assignment expressions
- && expressions
- || expressions
- ! expressions
- ?? expressions
- ?: expressions
- Anonymous functions
- Variable references
- Atomicity of variable references
- Conversions
- Operators
- General
- Operator precedence and associativity
- Operator overloading
- Unary operator overload resolution
- Binary operator overload resolution
- Candidate user-defined operators
- Numeric promotions
- General
- Unary numeric promotions
- Binary numeric promotions
- Lifted operators
- Selection statements
- The if statement
- The switch statement
- Iteration statements
- The while statement
- The do statement
- The for statement
- The foreach statement
- Jump statements
- The break statement
- The continue statement
- The goto statement
- The return statement
- The throw statement
- The try statement
- The checked and unchecked statements
- The lock statement
- The using statement
- The yield statement
- Namespaces
- Methods
- General
- Method parameters
- General
- Value parameters
- Reference parameters
- Output parameters
- Parameter arrays
- Static and instance methods
- Virtual methods
- Override methods
- Sealed methods
- Abstract methods
- External methods
- Partial methods
- Extension methods
- Method body
- Properties
- Static and instance properties
- Accessors
- Automatically implemented properties
- Accessibility
- Virtual, sealed, override, and abstract accessors
- Events
- Field-like events
- Event accessors
- Static and instance events
- Virtual, sealed, override, and abstract accessors
- Indexers
- Operators
- Unary operators
- Binary operators
- Conversion operators
- Interfaces
- Interface declarations
- General
- Interface modifiers
- Variant type parameter lists
- Variance safety
- Variance conversion
- Base interfaces
- Interface body
- Interface members
- Interface methods
- Interface properties
- Interface events
- Interface indexers
- Interface member access
- Qualified interface member names
- Interface implementations
- Explicit interface member implementations
- Uniqueness of implemented interfaces
- Implementation of generic methods
- Interface mapping
- Interface implementation inheritance
- Interface re-implementation
- Abstract classes and interfaces
- Enums
- Enum declarations
- Enum modifiers
- Enum members
- The System.Enum type
- Enum values and operations
- Delegates
- Delegate declarations
- Delegate members
- Delegate compatibility
- Delegate instantiation
- Delegate invocation
- Exceptions
- Causes of exceptions
- The System.Exception class
- How exceptions are handled
- Common exception classes
- Attributes
- Attribute classes
- Attribute usage
- Positional and named parameters
- Attribute parameter types
- Attribute specification
- Attribute instances
- Compilation of an attribute
- Run-time retrieval of an attribute instance
- Attribute classes
- Unsafe code
- Unsafe contexts
- Pointer types
- Fixed and moveable variables
- Pointer conversions
- Pointer arrays
- Pointers in expressions
- Pointer indirection
- Pointer member access
- Pointer element access
- The address-of operator
- Pointer increment and decrement
- Pointer arithmetic
- Pointer comparison
- The sizeof operator