Top ".net-4.5" questions

Version 4.5 of the Microsoft .NET Framework.

Cleaner way to do a null check in C#?

Suppose, I have this interface, interface IContact { IAddress address { get; set; } } interface IAddress { string city { get; set; } } class Person : IPerson { …

c# .net-4.0 null .net-4.5
HttpClient.GetAsync with network credentials

I'm currently using HttpWebRequest to get a website. I'd like to use the await pattern, which is not given for …

c# async-await .net-4.5
Is that possible to send HttpWebRequest using TLS1.2 on .NET 4.0 framework

My application connects to Experian server and Experian will soon stop supporting TLS 1.0 and TLS 1.1. All connectivity using HTTPS must …

c# .net-4.0 httpwebrequest .net-4.5 tls1.2
Is it possible to await an event instead of another async method?

In my C#/XAML metro app, there's a button which kicks off a long-running process. So, as recommended, I'm using …

c# microsoft-metro .net-4.5 async-await windows-store-apps
Retargeting solution from .Net 4.0 to 4.5 - how to retarget the NuGet packages?

I have migrated a solution that is currently targeting .NET 4.0 in VS2010 to VS2012 and now I would like to …

.net nuget visual-studio-2012 .net-4.5
Failed to load viewstate. The control tree into which viewstate is being loaded

I am receiving the following error message after an HTTP POST on an ASP.NET form hosted inside a UserControl: …

asp.net .net umbraco .net-4.5 asp.net-4.5
How to 'await' raising an EventHandler event

Sometimes the event pattern is used to raise events in MVVM applications by or a child viewmodel to send a …

c# events mvvm .net-4.5 async-await
Proper way to implement a never ending task. (Timers vs Task)

So, my app needs to perform an action almost continuously (with a pause of 10 seconds or so between each run) …

c# multithreading timer task-parallel-library .net-4.5
ConfigurationManager Class not exist on .NET 4.5 Framework

I just start working with .NET Framework 4.5 of C#. Am using Windows Form Application. I have do the needed imports …

c# .net .net-4.5
System.Web.Http missing after .net 4.5 upgrade

I've just upgraded my solution to .net 4.5 using Target Framework Migrator, and then the package manager console command: Update-Package -Reinstall …

.net asp.net-mvc asp.net-web-api .net-4.5