Introduction to new features of. NET Framework 4.5

Source: Internet
Author: User
Tags sql injection defense

Developer Preview version:. net 4.5

. NET for Metro style apps
Metro-style applications are special form elements designed using the powerful features of the Windows operating system.
A subset of. NET APIs for Metro style apps is used to support Metro-style applications,
You can use C # Or Visual Basic to write Metro-style applications.
For details, see:
Http://go.microsoft.com/fwlink? LinkId = 228491

Core new functions and Improvements
The following features and improvements are added to the Common Language Runtime (CLR) and. NET classes:
-Set the timeout time for regular expression matching execution.
-Set regional information for the application domain
-Console applications support Unicode (UTF-16) Encoding
-Strings can be compared and sorted by region information.
-Improved search resource performance
-Improved Zip compression 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 about 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 do not need to use class features to create parts. Now you can create your parts according to the naming conventions)
-Multiple scopes

Asynchronous file operations
In the. NET Framework 4.5 Developer Preview,
The Asynchronous Operation Feature Based on the task model is added to the C # and Visual Basic languages.
Use asynchronous methods in the I/O classes to use these new features

Web 
The ASP. NET4.5 development preview includes the following new features:
-
Supports new HTML5 form types.
-
Web Forms supports model binding.
You can directly bind the data access method to the control.
The format of user input data can be converted automatically.
-
Support for unobtrusive JavaScript in client-side validation scripts
(I don't know how to translate this sentence ~ I don't understand what this sentence means .)
-
Improve performance by bundling and compressing client scripts
-
Use the AntiXSS library to encode regular forms to prevent cross-site scripting attacks
AntiXSS used to be an external class library and also includes SQL Injection defense; For details, see: http://wpl.codeplex.com/
-
Supported WebSockets protocols
(This should be HTML5 content, see: http://en.wikipedia.org/wiki/Web_Sockets)
-
Supports asynchronous read/write of HTTP requests and responses
-
Asynchronous modules and handlers
-
Use ScriptManager to support content delivery network (CDN)
More functions:
Http://msdn.microsoft.com/zh-cn/library/hh420390 (v = VS.110). aspx

Networking Network
NET Framework4.5 Developer Preview provides a new programming interface for HTTP applications.
For more details,
See the new version of 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 network improvements include System. Net, System. Net. Mail, and related namespaces.
-Improved internationalization and IPv6 support.
-Supported RFC-compatible Uris.
-Supports international domain name (IDN) analysis.
-Support for international email addresses (EAI.

Windows Presentation Foundation (WPF) 
In the. NET Framework 4.5 Developer Preview, Windows Presentation Foundation (WPF) includes the following changes and improvements:
-New ribbon Control
-The new INotifyDataErrorInfo interface supports synchronous and asynchronous data verification.
-New Features of The VirtualizingPanel and Dispatcher classes.
-Performance improvement when displaying large sets of data and non-UI thread access to the set
-The ICustomTypeProvider interface is implemented for binding static attributes and custom types, and data binding information is extracted from the binding expression.
-Reset the changed value (live shaping ).
-Better integration of WPF and Win32 user interface components.
-Check whether the container data context is disconnected.
-You can set the attribute and Data Source Change timeout time.
-Improved support for implementing the weak event model. In addition, the Extended Tag that the event can accept now.
For more information: http://msdn.microsoft.com/zh-cn/library/bb613588 (v = VS.110). aspx

Windows Communication Foundation (WCF) 
-Simplified the generated configuration file
-Contract priority principle development support.
-Easier configuration of ASP. NET compatibility mode.
-Modified the default transmission attribute to reduce the number of times developers set it by encoding.
-Update the XmlDictionaryReaderQuotas class to reduce the number of times users manually configure the XML dictionary.
-Visual Studio can verify whether the WCF configuration file is correct during compilation, so as to avoid the problem of configuration file errors after running.
-New asynchronous stream support.
-The new HTTPS protocol ing makes HTTPS-based WCF services on IIS easier to expose endpoints
-Add "? SingleWSDL "can generate WSDL metadata
-WebSockets supports bidirectional communication between port 80 and port 443, which is similar to TCP transmission.
-Supports service configuration in code (it should be a service configuration change during runtime)
-XML editor prompt.
-ChannelFactory supports caching.
-Binary encoding compression support
More:
Http://go.microsoft.com/fwlink? LinkId = 228173

Original article address

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

Because I am not familiar with WF

No translation for this part

Related Article

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.