Introduction to the. NET Framework 4.5 new features

Source: Internet
Author: User
Tags mail naming convention new features reflection regular expression sql injection

Developer Preview version. NET 4.5

. NET for Metro style apps
Metro-style applications are special form elements designed to take advantage of the powerful features of the Windows operating system.
One called. NET APIs for Metro style apps. NET is used to support Metro-style applications,
You can use C # or Visual Basic to write Metro-style applications.
See:
http://go.microsoft.com/fwlink/?LinkId=228491

Core new features and improvements
The following features and improvements are added to the common language runtime (CLR) and. NET classes:
-Sets the time-out for a regular expression to perform a match
-Set culture information for the application domain
-the console application supports Unicode (UTF-16) encoding
-Enables string comparisons and sorting by region information
-improves the performance of retrieval resources
-zip compression improvements to reduce the size of a compressed file
-You can use the Customreflectioncontext class to customize a reflection context to override the default reflection behavior
(For information on the Customreflectioncontext class, see: http://msdn.microsoft.com/zh-cn/library/ System.reflection.context.customreflectioncontext (v=vs.110). aspx)

Managed extensibility Framework (MEF)
-Support for generic types
-"Convention first" programming model. (You may not need to use the class attribute to create a part, you can now create your part by naming convention.)
-Multiple scopes

Asynchronous file operations
In the. NET Framework 4.5 Developer Preview version,
The asynchronous operation attributes based on the task model are added to C # and the Visual Basic language.
These new features can be used with asynchronous methods in the I/O classes

Web  
The asp.net4.5 Development Preview version includes the following new features:
-
Support for new HTML5 form types.
-
Support for model binding in Web Forms.
You can bind data access methods directly to the control
can automatically format the data entered by the user
-
Support for unobtrusive JavaScript in client-side validation scripts
This sentence does not know how to turn ~ I also do not understand this sentence is what meaning.
-
Improve performance by bundling and compressing client script
-
Use the ANTIXSS Library to encode regular forms to prevent cross-site scripting attacks
ANTIXSS was previously an external class library, including SQL injection defenses; see also: http://wpl.codeplex.com/
-
Supported WebSockets Protocol
(This should be the content of HTML5, see: Http://en.wikipedia.org/wiki/Web_Sockets)
-
Requests and responses that support asynchronous read and write HTTP
-
Supports asynchronous modules and handlers
-
Using ScriptManager Support content distribution network (CDN)
More Features:
http://msdn.microsoft.com/zh-cn/library/hh420390 (v=vs.110). aspx

The

Networking network
Net Framework4.5 Developer Preview provides a new programming interface for HTTP applications.
For more details,
See the new System.net.http 
(http:// Msdn.microsoft.com/zh-cn/library/system.net.http (v=vs.110). aspx
and System.Net.Http.Headers
(http:// Msdn.microsoft.com/zh-cn/library/system.net.http.headers (v=vs.110). aspx)
namespace.
In addition, the following improvements to the network include System.net,system.net.mail and related namespaces.
-Improved internationalization and IPV6 support. The
-RFC compatible URI support.
-Supports International domain name (IDN) analysis.
-Support for e-mail address internationalization (EAI).

Windows Presentation Foundation (WPF)  
on. NET Framework 4.5 Developer Preview, Windows presentation Foundation (WPF) includes changes and improvements in the following areas:
-New Ribbon Controls
-New Inotifydataerrorinfo interfaces, Supports the new features of the
-virtualizingpanel and dispatcher classes for synchronous and asynchronous data validation.
-performance improvements when displaying large collection data and non-UI threads accessing the collection
-binding to static properties and binding to custom types implements the Icustomtypeprovider interface, extracting data binding information from the binding expression
-resets the changed value (live Shaping).
-better integration of WPF and Win32 user interface components.
-You can check whether the container's data context is disconnected.
-can set properties, timeout for data source changes
-improved support for implementing weak event patterns. In addition, the event can now accept an extension tag.
For more information: http://msdn.microsoft.com/zh-cn/library/bb613588 (v=vs.110). aspx

Windows Communication Foundation (WCF)  
-Simplify the generated configuration file
-Contract priority principle development support.
-Easier configuration of asp.net compatibility mode.
-Modified the default transport properties to reduce the number of times that developers set it up by encoding.
-Update the XmlDictionaryReaderQuotas class to reduce the number of reader quotas for manually configuring an XML dictionary.
-visualstudio can verify that the WCF configuration file is correct at compile time, thus avoiding the problem of finding a profile error after running.
-New asynchronous streaming support.
-New HTTPS protocol mapping, making it easier to expose endpoints for WCF services based on HTTPS protocol on IIS
-Generate WSDL metadata by adding "? singlewsdl" to the WCF service URL
-websockets support, which makes two-way communication between 80 and 443 ports similar to TCP transmission.
-Support for configuring services in code (should be Run-time Change service configuration)
-xml editor hint.
Cache support for-channelfactory.
-Support for binary coded compression
More:
http://go.microsoft.com/fwlink/?LinkId=228173

Original address

Http://msdn.microsoft.com/library/ms171868%28VS.110%29.aspx

Because I'm not familiar with the WF part.

There is no translation of this part

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.