Table of Contents

Method TryGetRuntimeAsyncInfo

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll

TryGetRuntimeAsyncInfo(MethodBase, out RuntimeAsyncMethodInfo)

Gets information about how the runtime's async machinery treats a method, if it does so specially.
bool TryGetRuntimeAsyncInfo(MethodBase method, out RuntimeAsyncMethodInfo runtimeAsyncInfo)

Parameters

method MethodBase
The method to get runtime async info for.
runtimeAsyncInfo RuntimeAsyncMethodInfo
The resulting info, if any was found.

Returns

bool
true if method is treated specially by the runtime's async machinery, and runtimeAsyncInfo is populated. false otherwise.

Remarks

This must only be called if Features includes HasRuntimeAsync.

If runtimeAsyncInfo is populated, all non-default method handles are valid handles corresponding to method.