开发者

What all are the New features in asp.net 4.0.? [duplicate]

开发者 https://www.devze.com 2022-12-18 15:43 出处:网络
This question already has 开发者_如何学编程answers here: Closed 12 years ago. Possible Duplicate:
This question already has 开发者_如何学编程answers here: Closed 12 years ago.

Possible Duplicate:

What will be the new features available in ASP.Net 4.0?

What all are the New features in asp.net 4.0.? Currently our team is doing project on .net 2.0 and we didn't go for an upgrade on asp.net 3.5. Now we are preparing to switch from asp.net 2.0 to asp.net 4.0. A list of such features would help us in designing the training program.


Below are my notes (with links) of an internal presentation I'm doing. This is by no means an exhaustive list, but it's an oveview in the areas that interest me. I've highlighted a few of my personal favourites :)

For a more official list, see Håvard's answer.

Edit: Just realised you only mentioned ASP.NET 4, but I'll leave the other items in there for anyone who is interested.

  • CLR
    • In-process Side-by-Side
    • Code Access Security deprecated in favour of Security Policy
    • Type Equivalence (noPIA)
  • Languages
    • C#
      • dynamic keyword
      • Named / optional arguments
      • Co/contra-variance support in delegates and interfaces
    • VB.NET
      • Auto Properties
      • Lambdas with no return value
      • Multi-line lambdas
      • Collection Initializers
      • Automatic Line Continuations
    • F#
    • Dynamic Language Runtime
      • IronRuby (out of band release)
      • IronPython
  • BCL
    • Parallel Extensions
    • Code Contracts
    • Managed Extensibility Framework
    • Reactive Extensions (IObservable)
    • Location / GPS APIs
    • Memory Mapped Files
    • Large Numbers (BigInteger, Complex Numbers)
    • Tuples / SortedSet
    • ObservableCollection moved to System.dll
    • Lots of random, helpful, API changes:
      • Enum.HasFlag
      • Enum.TryParse
      • Stream.CopyTo(Stream)
      • Guid.TryParse
      • IEnumerable File.EnumerateFiles()
      • IEnumerable File.ReadLines()
      • String.Join(IEnumerable)
      • String.Concat(IEnumerable)
  • ASP.NET
    • <%: %> Encoding Syntax
    • Clean web.config files
    • Web.config merge/deployment
    • Extensible Output Caching (OutputCacheProvider)
    • SEO improvements (access to page metadata)
    • ASP.NET MVC 2
      • Areas (Admin areas)
      • Validation (annotations; support for jquery)
      • Type templates
    • ASP.NET WebForms
      • Routing support
      • Cleaner, configurable client IDs
      • Smaller viewstate
  • WPF (also)
    • Windows 7 Multitouch
    • Windows 7 Shell integration (Taskbar windows, taskbar progress)
    • Improved Text Rendering
    • Cached Compositions
    • Pixel Shader 3
    • DLR databinding support
    • New XAML/BAML parser
    • Visual State Manager (from Silverlight)
  • Silverlight 4
    • Multitouch + gestures
    • Printing support
    • CoreCLR / CLR compatability (single compilation)
    • Webcam / Microphone Support
    • Mousewheel support
    • Official Google Chrome support
    • 200% faster (supposedly)
    • H.264
    • Video streaming support
    • Out-of-browser applications
      • Host HTML
      • Toast (bubble) notifications
      • Window chrome customisations
    • Trusted out-of-browser applications
      • User folder read-write access (my documents, etc)
      • COM automation
      • Privilage elevation dialog
  • Entity Framework 4
    • Completely Rewritten
    • Persistance Ignorance / POCO Support
      • Comparison or virtual members
    • Model-first / Database Generation Support
    • T4 Code Generation
    • Lazy Loading
    • "Client" entities that track their own changes
    • Code-only developer support (no edmx xml)
  • Workflow Foundation 4
    • Completely rewritten
    • XAML (codeless) design
    • Limited BC with WF3
  • Visual Studio .NET 2010 IDE
    • Static Code Analysis (class coupling, etc)
    • Multi-targeting
    • Multiple Monitor Support
    • Task debugging support (task stack visualisation)
    • Add Reference dialog defaults to Project; .NET tab is asynchronous
    • Code navigation (CTRL+COMMA to find resource by name)
    • Editor written in WPF / MEF
    • No more "team" editions. Only Professional, Premium and Ultimate
    • "Data Dude": redistributable command line for comparing and updating databases (Premium/Ultimate)
    • Test features: ability to record video + steps of bugs for reproduction (Premium/Ultimate)
    • Web Deployment Tool


Plase see this whitepaper from Microsoft detailing many of the new features in ASP.NET 4.0.


There are many, but I will suggest that the more exciting things coming are the maturing technologies that I use. Project Astoria which changed to ADO.NET dataservices and then has had two CTP releases out of band will finally be brought into step with .NET 4.0 and be called WCF dataservices.

A restful data access layer with language integrated query and the power of anonymous and instance methods and type inference means you can write things like this semi psuedo code, with a lot of the problems ironed out and a lot of good forum knowledge:

Button.Click += new EventHandler((o,e) =>{DG.ItemsSource DataContext.tblUsers.Where(f=>f.active ==true;);

Don't mention MVVM or inefficiencies etc, but I believe this code does on one line what would take a fair few to do in .NET 2.0

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号