Can we have code highlighting for async
and await
in C#?
async
and await
was released with .NET Framework 4.5.
Visual Studio 2012 introduces a simplified approach, async programming, that leverages asynchronous support in the .NET Framework 4.5 and the Windows Runtime. The compiler does the difficult work that the developer used to do, and your application retains a logical structure that resembles synchronous code. As a result, you get all the advantages of asynchronous programming with a fraction of the effort.
async
and await
will not be recognised by the highlighter as you can see here:
public async void Foo()
{
await Task.Delay(10000);
}
async
orawait
for C#?status-bydesign
.