Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Like this? Share it with your network

Share

Whats new in .net framework 4

on

  • 555 views

 

Statistics

Views

Total Views
555
Views on SlideShare
555
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Whats new in .net framework 4 Presentation Transcript

  • 1. Visual Studio 2010 and.NET Framework 4Training Workshop
  • 2. What’s New In .NET Framework 4NameTitleOrganizationEmail
  • 3. A Look Back… SP1 3.5 3.0.NET 1.0 .NET 1.1 .NET 2.0 .NET 4 2002 2003 2005-08 2008 CTP! CLR 1.0 CLR 1.1 CLR 2.0 CLR 4
  • 4. What Is The .NET Framework? Win AndWPF DLR ASP.NET WCF LINQ Forms more! Base Class Libraries The CLR JIT & Garbage Security Exception Loader & NGEN Collector Model Handling Binder
  • 5. Base Class Library ImprovementsNumerics BigInteger, ComplexData Structures Tuple SortedSet<T>, ISet<T>I/O Memory-Mapped File Unified Cancellation Model
  • 6. The goal of CLR 4 Working Better Together…In-Proc SxS Managed Extensibility Framework DLR Integration Native/Managed Interop Faster… Threading Parallel Extensions Garbage Collection Profiling With Fewer Bugs… Corrupted State Exceptions Code Contracts Debugging
  • 7. The goal of CLR 4 Working Better Together…In-Proc SxS Managed Extensibility Framework DLR Integration Native/Managed Interop Faster… Threading Parallel Extensions Garbage Collection Profiling With Fewer Bugs… Corrupted State Exceptions Code Contracts Debugging
  • 8. Design By ContractCode Contracts introduce a way to specify contractual information that is not represented by a method or type’s signature alone.
  • 9. What is a Contract?A contract is… an exchange of promises between two or more parties to do, or refrain from doing, an act which is enforceable in a court of law. - Wikipedia
  • 10. Why Contracts?There upset about that? But its the best gift in the hole world.They’re upset about that? But it’s the best gift in the whole world.
  • 11. Why Contracts?Just because something compiles, doesn’t mean it works…
  • 12. A Contract contains…Pre-conditions - must be true before public Rational(int numerator, int denominator) { Contract.Requires(denominator > 0); … }Post-conditions -must be true after public string GetPassword() { Contract.Ensures(Contract.Result<string>() != null); … return password; }
  • 13. A Contract contains…Invariants - must always be true [ContractInvariantMethod] protected void ObjectInvariant() { Contract.Invariant(denominator > 0); }
  • 14. Code Contracts
  • 15. Type EquivalenceInterop Assemblies translate between managed code and COM For each interface, struct, enum, delegate, and member, contains a managed equivalent with marshalling data
  • 16. However!Primary Interop Assembliescause many pain points…
  • 17. Go Away, PIA!1. Compilers embed the portions of the interop assemblies that the add-ins actually use2. Runtime ensures the embedded definitions of these types are considered equivalent
  • 18. No-PIA
  • 19. Existing Side-By-Side (SxS) 1.1 2.0 3.0 3.5 add-in add-in add-in add-in 3.5 3.0 .NET 1.1 .NET 2.0 Host Process (i.e. Outlook)
  • 20. In-Process Side-By-Side (SxS) 2.0 3.0 3.5 4.0 add-in add-in add-in add-in 3.5 3.0 .NET 4.0 .NET 2.0 Host Process (i.e. Outlook)
  • 21. The goal of CLR 4.0 Working Better Together…In-Proc SxS Managed Extensibility Framework DLR Integration Native/Managed Interop Faster… Threading Parallel Extensions Garbage Collection Profiling With Fewer Bugs… Corrupted State Exceptions Code Contracts Debugging