What’s New in .NET Framework 4.5 ?

Through this post i’ll declare a summary of the important features and improvements in the .NET Framework 4.5.

  • Windows Store apps
  • Windows Store apps are the Windows 8 apps ( Known as metro-style apps ), Windows Store apps are designed for specific form factors and leverage the power of the Windows operating system. A subset of the .NET Framework 4.5 is available for building Windows Store apps for Windows by using C# or Visual Basic.


  • Portable Class Libraries
  • The Portable Class Library project in Visual Studio 2012 enables you to write and build managed assemblies that work on multiple .NET Framework platforms. Using a Portable Class Library project, you choose the platforms (i.e, Windows Phone and .NET for Windows Store apps) to target. The available types and members in your project are automatically restricted to the common types and members across these platforms.


  • New Features and Improvements
    • Ability to reduce system restarts by detecting and closing .NET Framework 4 applications during deployment.
    • Support for arrays that are larger than 2 gigabytes on 64-bit platforms (NOTE: This feature can be enabled in the application configuration file).
    • Better performance through background garbage collection for servers (NOTE: background garbage collection is automatically enabled when you are using server garbage collection in the .NET Framework 4.5)
    • Background just-in-time (JIT) compilation, Optionally available on multi-core processors to improve application performance.
    • Ability to limit how long the regular expression engine will attempt to resolve a regular expression before it times out (Check Regex.MatchTimeout property).
    • Ability to define the default culture for an application domain (Check CultureInfo class
    • Console support for Unicode (UTF-16) encoding (Check Console class).
    • Support for versioning of cultural string ordering and comparison data (Check SortVersion class).
    • Better performance when retrieving resources.
    • Zip compression improvements to reduce the size of a compressed file (Check System.IO.Compression namespace).
    • Ability to customize a reflection context to override default reflection behavior through the CustomReflectionContext class.
    • Support for the 2008 version of the Internationalized Domain Names in Applications (IDNA) standard when the System.Globalization.IdnMapping class is used on Windows 8.
    • Delegation of string comparison to the operating system, which implements Unicode 6.0, when the .NET Framework is used on Windows 8.
    • Ability to compute the hash codes for strings on a per application domain basis.
    • Type reflection support split between Type and TypeInfo classes.

  • Managed Extensibility Framework (MEF)
    MEF provides the following new features:

    • Support for generic types.
    • Convention-based programming model that enables you to create parts based on naming conventions rather than attributes.
    • Multiple scopes.
    • A subset of MEF that you can use when you create Windows Store apps. This subset is available as a downloadable package from the NuGet Gallery Click here to get it.

  • Asynchronous File Operations
  • In the .NET Framework 4.5, new asynchronous features were added to the C# and Visual Basic languages. These features add a task-based model for performing asynchronous operations. To use this new model, use the asynchronous methods in the I/O classes.


  • Tools
    • Resource File Generator enables you to create a .resw file for use in Windows Store apps from a .resources file embedded in a .NET Framework assembly.
    • Managed Profile Guided Optimization enables you to improve application startup time, memory utilization, and throughput by optimizing native image assemblies. The command-line tool generates profile data for native image application assemblies.

  • Parallel Computing
  • The .NET Framework 4.5 provides several new features and improvements for parallel computing. These include improved performance, increased control, improved support for asynchronous programming, a new dataflow library, and improved support for parallel debugging and performance analysis.


  • Web (Asp.NET 4.5)
    • Support for new HTML5 form types.
    • Support for model binders in Web Forms. These let you bind data controls directly to data-access methods, and automatically convert user input to and from .NET Framework data types.
    • Support for unobtrusive JavaScript in client-side validation scripts.
    • Improved handling of client script through bundling and minification for improved page performance.
    • Integrated encoding routines from the AntiXSS library to protect from cross-site scripting attacks.
    • Support for WebSockets protocol.
    • Support for reading and writing HTTP requests and responses asynchronously.
    • Support for asynchronous modules and handlers.
    • Support for content distribution network (CDN) fallback in the ScriptManager control.

  • Networking
    • new programming interface for HTTP applications (Check System.Net.Http and System.Net.Http.Headers namespaces).
    • new programming interface for accepting and interacting with a WebSocket connection by using the existing HttpListener and related classes (Check System.Net.WebSockets namespace and the HttpListener class).
    • RFC-compliant URI support (Check Uri and related classes)
    • Support for Internationalized Domain Name (IDN) parsing (Check Uri and related classes ).
    • Support for Email Address Internationalization (EAI) (Check System.Net.Mail namespace).
    • Improved IPv6 support (Check System.Net.NetworkInformation namespace).
    • Dual-mode socket support (Check Socket and TcpListener classes).

  • Windows Presentation Foundation (WPF)
    • The new Ribbon control, which enables you to implement a ribbon user interface that hosts a Quick Access Toolbar, Application Menu, and tabs.
    • The new INotifyDataErrorInfo interface, which supports synchronous and asynchronous data validation.
    • New features for the VirtualizingPanel and Dispatcher classes.
    • Improved performance when displaying large sets of grouped data, and by accessing collections on non-UI threads.
    • Data binding to static properties, data binding to custom types that implement the ICustomTypeProvider interface, and retrieval of data binding information from a binding expression.
    • Repositioning of data as the values change (live shaping).
    • Ability to check whether the data context for an item container is disconnected.
    • Ability to set the amount of time that should elapse between property changes and data source updates.
    • Improved support for implementing weak event patterns. Also, events can now accept markup extensions.

  • Windows Communication Foundation (WCF)
    • Simplification of generated configuration files.
    • Support for contract-first development.
    • Ability to configure ASP.NET compatibility mode more easily.
    • Changes in default transport property values to reduce the likelihood that you will have to set them.
    • Updates to the XmlDictionaryReaderQuotas class to reduce the likelihood that you will have to manually configure quotas for XML dictionary readers.
    • Validation of WCF configuration files by Visual Studio as part of the build process, so you can detect configuration errors before you run your application.
    • New asynchronous streaming support.
    • New HTTPS protocol mapping to make it easier to expose an endpoint over HTTPS with Internet Information Services (IIS).
    • Ability to generate metadata in a single WSDL document by appending ?singleWSDL to the service URL.
    • Websockets support to enable true bidirectional communication over ports 80 and 443 with performance characteristics similar to the TCP transport.
    • Support for configuring services in code.
    • XML Editor tooltips.
    • ChannelFactory caching support.
    • Binary encoder compression support.
    • Support for a UDP transport that enables developers to write services that use “fire and forget” messaging (A client sends a message to a service and expects no response from the service).
    • Ability to support multiple authentication modes on a single WCF endpoint when using the HTTP transport and transport security.
    • Support for WCF services that use internationalized domain names (IDNs).
  • Hope That You Liked The Post πŸ™‚


8 thoughts on “What’s New in .NET Framework 4.5 ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s