Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Assembly Browser doesn't dissemble async/await functions

$
0
0

A function like this:

public async Task MyFunction(CancellationToken cancellationToken) { }

is decompiled like this in the Assembly Browser:

[DebuggerHidden, AsyncStateMachine(typeof(MyClass.<MyFunction>c__async1))]
public Task MyFunction(CancellationToken cancellationToken) { }

which is not valid C#

Similarly, any statements in the method body are not decompiled coherently.

I'm using the mono compiler on OS X.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>