Method TryGetRuntimeAsyncInfo
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
methodMethodBase- The method to get runtime async info for.
runtimeAsyncInfoRuntimeAsyncMethodInfo- The resulting info, if any was found.
Returns
- bool
- true if
methodis treated specially by the runtime's async machinery, andruntimeAsyncInfois 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.