Thursday, November 4, 2010

.Net 4.0 New Features in the Language and Framework

.Net 4.0 New Features in the Language and Framework - Kathleen Dollard
Kathleen@mvps.org

       It is backwards compatible, but must specifically target 4.0 libraries for all projects.
       There has been about 300 deprecated classes.
       These include old security, dropped oracle support (must get providers from oracle to connect to it)  Improved garbage collection.
       Code Contracts are new, the need the diagnostics.contracts imported.  A Way to protect your quality of code. (was mentioned briefly)
       Can  label code for Security - Transparent, Critical, Security Safe Critical.  By default old code was SecuritySafeCritcal, almost all code can be Transparent.
       Optional and named parameters can now be nullable
       No line continuation characters needed
       Don’t need to add get/set when doing properties unless you need to do something non standard
       Lambda expressions can contain multiple lines, and return voids (by calling subs)
       There are new data types bigInterger(7.8 e56), Complex, Tuple (has  multiple values (3-7)) , SortedSets, Lazy<T> encapsulate type that can be created later), Task (takes some thing to do)(will be used by async calls in .net 5.00)   
       File system enumerations, gets files and directories as you need them
       Flag attribute is used bitwise enumerations. Added HasFlag to check flag values.

No comments:

Post a Comment