Power Features in .NET 4<br />Presented by Robert MacLean  @rmaclean<br />
Introduction<br />Level 200<br />A tour: Lots of features– QUICKLY<br />Show something for everyone!<br />
Focus<br />.NET 4 has over 100 new and improved features!<br />Too many for an hour or even a day.<br />Our focus: BCL + F...
Problems<br />How do I know if this person is using x64 so I can optimise my code?<br />I want to save files where my user...
Demo<br />A bunch of smaller features in the core<br />
Summary<br />Environment.Is64BitOperatingSystem <br />Environment.Is64BitProcess<br />	Easy options to find out about the ...
Problem<br />I need smarter design time error detection<br />I need promises on what my methods will accept & return <br /...
Demo<br />Code Contracts in .NET 4<br />
Summary<br />Code Contracts baked into the Framework<br />Tooling is a separate download<br />Great for design time help b...
Problem<br />I need to improve application performance<br />My application pulls lots of data from a database or webservic...
Demo<br />Cache is king<br />
Summary<br />Memory cache is awesome<br />Per process only<br />Designed for you to build more cache stores, like a databa...
Problem<br />I need to build applications that are context aware<br />I’m building an application that needs maps and loca...
Demo<br />System.<br />Device.<br />Location<br />
Summary<br />Awesome feature, especially with all these GPS enabled tablets<br />Easy to use<br />Can use a software based...
Session Summary<br />Small useful features<br />Is64BitOperatingSystem, Is64BitProcess, GetFolderPath, SpecialFolder, File...
Thank YOU!<br />Robert MacLean<br />www.sadev.co.za (slides + demo scripts)<br />@rmaclean<br />
Upcoming SlideShare
Loading in …5
×

Power features in .NET 4: Investigating the features of .NET 4 which you don’t know about

867 views
784 views

Published on

The .NET 4 Framework has over 100 new and improved features! Do you know them all? This demo-heavy talk is perfect for those who never have used .NET 4 and want to upgrade their skills as well as developers using it today wanting to learn something new! We will cover some of the big features you may have seen and a lot of the smaller power features that you may not have seen. These features will make your life as a developer easier!

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
867
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • 1 min
  • 2 mins
  • // 12 min
  • Power features in .NET 4: Investigating the features of .NET 4 which you don’t know about

    1. 1. Power Features in .NET 4<br />Presented by Robert MacLean  @rmaclean<br />
    2. 2. Introduction<br />Level 200<br />A tour: Lots of features– QUICKLY<br />Show something for everyone!<br />
    3. 3. Focus<br />.NET 4 has over 100 new and improved features!<br />Too many for an hour or even a day.<br />Our focus: BCL + FCL<br />Base class library<br />Framework class library<br />
    4. 4. Problems<br />How do I know if this person is using x64 so I can optimise my code?<br />I want to save files where my users can find them easily, like their My Documents or the Desktop?<br />I need to loop over files in this directory… but I want it to be easy and fast!<br />I would love to use bitwise flags in my code to set options!<br />(I have lots of problems)<br />
    5. 5. Demo<br />A bunch of smaller features in the core<br />
    6. 6. Summary<br />Environment.Is64BitOperatingSystem <br />Environment.Is64BitProcess<br /> Easy options to find out about the environment<br />Environment.GetFolderPath<br />Environment.SpecialFolder<br /> Easy options to find those important paths<br />Enumerators for Files & Folders<br /> FINALLY some generic love!<br />Enum Flags<br />Math made easy<br />
    7. 7. Problem<br />I need smarter design time error detection<br />I need promises on what my methods will accept & return <br />I need runtime error checking<br />
    8. 8. Demo<br />Code Contracts in .NET 4<br />
    9. 9. Summary<br />Code Contracts baked into the Framework<br />Tooling is a separate download<br />Great for design time help both in your own code and code you consume/expose to others<br />Sandcastle can use this to augment your documentation<br />
    10. 10. Problem<br />I need to improve application performance<br />My application pulls lots of data from a database or webservice<br />Some of it is pretty static<br />10<br />
    11. 11. Demo<br />Cache is king<br />
    12. 12. Summary<br />Memory cache is awesome<br />Per process only<br />Designed for you to build more cache stores, like a database or file system<br />Go and see AppFabric Caching<br />
    13. 13. Problem<br />I need to build applications that are context aware<br />I’m building an application that needs maps and location services<br />13<br />
    14. 14. Demo<br />System.<br />Device.<br />Location<br />
    15. 15. Summary<br />Awesome feature, especially with all these GPS enabled tablets<br />Easy to use<br />Can use a software based GPS if hardware is not available<br />
    16. 16. Session Summary<br />Small useful features<br />Is64BitOperatingSystem, Is64BitProcess, GetFolderPath, SpecialFolder, File/Folder enumerators, FLAGS!<br />Better code with code contracts<br />Better performance thanks to memory cache<br />Context aware computing with System.Device.Location<br />
    17. 17. Thank YOU!<br />Robert MacLean<br />www.sadev.co.za (slides + demo scripts)<br />@rmaclean<br />

    ×