2 instantiations of AsyncStateMachineBox
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (2)
220
var box = new
AsyncStateMachineBox
<TStateMachine>();
453
return new
AsyncStateMachineBox
<IAsyncStateMachine>();
6 references to AsyncStateMachineBox
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (5)
167
if (taskField is
AsyncStateMachineBox
<TStateMachine> stronglyTypedBox)
184
else if (taskField is
AsyncStateMachineBox
<IAsyncStateMachine> weaklyTypedBox)
220
var
box = new AsyncStateMachineBox<TStateMachine>();
290
Debug.Assert(s is
AsyncStateMachineBox
<TStateMachine>);
292
Unsafe.As<
AsyncStateMachineBox
<TStateMachine>>(s).StateMachine!.MoveNext();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\IAsyncStateMachineBox.cs (1)
7
/// An interface implemented by all <see cref="AsyncTaskMethodBuilder{TResult}.
AsyncStateMachineBox
{TStateMachine}"/> instances, regardless of generics.