jeudi 11 juin 2015

Identify an async Void method through reflection [duplicate]

This question already has an answer here:

I'm analyzing a class through reflection and I want to check if a method is actually a async void method.

I have a MethodInfo object, and through it I can inspect the ReturnType property but that just says Void. Looking around I can't find a way to find to check if it's an async though.

Is there a way to see if a method is async void? Surely there must be?





Aucun commentaire:

Enregistrer un commentaire