Future of C# (4.0)
Una sessione come sempre interessante presentata da Anders Hejlsberg. Ecco in sintesi le novità previste per C# 4.0, in forma grezza, torneremo poi sull'argomento con maggiore dettaglio:
- Dynamically typed objects
- Dynamic keyword
- Dynamic method invocation
- Dynamic conversion
- Optional and named parameters
- Default value to parameters of methods
- Named arguments while calling methods
- Improved COM interop
- Automatic object -> dynamic mapping
- Optional and named parameters
- Indexed properties
- Optional ref modifier
- Interop type embedding ("no PIA")
- Co- and Contra-variance
- out = Co-variant (cannot be a parameter, so less-derived)
- in = Contra-variant (can only be used as method parameters or write only properties, so more-derived)