Top ".net-4.5" questions

Version 4.5 of the Microsoft .NET Framework.

async/await - when to return a Task vs void?

Under what scenarios would one want to use public async Task AsyncMethod(int num) instead of public async void AsyncMethod(…

c# asynchronous .net-4.5
Do you have to put Task.Run in a method to make it async?

I'm trying to understand async await in the simplest form. I want to create a very simple method that adds …

c# .net-4.5 async-await c#-5.0
Where is the .NET Framework 4.5 directory?

I've installed Windows 8, Visual Studio 2012 but don't have a v4.5 directory in %WINDIR%\Microsoft.NET\Framework. Have I done something …

.net-4.5 installation-path
Set database timeout in Entity Framework

My command keeps timing out, so I need to change the default command timeout value. I've found myDb.Database.Connection.…

c# asp.net-mvc entity-framework .net-4.5 connection-timeout
Targeting .NET Framework 4.5 via Visual Studio 2010

Today I installed the .NET Framework 4.5 on my machine expecting to be able to use it from Visual Studio 2010, since …

visual-studio-2010 visual-studio .net-4.5
C# HttpClient 4.5 multipart/form-data upload

Does anyone know how to use the HttpClient in .Net 4.5 with multipart/form-data upload? I couldn't find any examples on …

c# upload .net-4.5 multipartform-data dotnet-httpclient
Differences between .NET 4.0 and .NET 4.5 in High level in .NET

Eager to know Differences between .NET 4.0 and .NET 4.5 in High level in .NET and also differences in ASP.NET, C# …

.net .net-4.0 .net-4.5
How to cancel a Task in await?

I'm playing with these Windows 8 WinRT tasks, and I'm trying to cancel a task using the method below, and it …

c# task-parallel-library .net-4.5
Do HttpClient and HttpClientHandler have to be disposed between requests?

System.Net.Http.HttpClient and System.Net.Http.HttpClientHandler in .NET Framework 4.5 implement IDisposable (via System.Net.Http.HttpMessageInvoker). The …

c# .net-4.5 idisposable using dotnet-httpclient
Run two async tasks in parallel and collect results in .NET 4.5

I've been trying for a while to get something I thought would be simple working with .NET 4.5 I want to …

c# asynchronous task-parallel-library .net-4.5