2 types derived from StateMachineBox
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs (2)
303private sealed class SyncSuccessSentinelStateMachineBox : StateMachineBox 310StateMachineBox,
12 references to StateMachineBox
System.Private.CoreLib (12)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilder.cs (4)
6using StateMachineBox = System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder<System.Threading.Tasks.VoidTaskResult>.StateMachineBox; 15private static readonly StateMachineBox s_syncSuccessSentinel = PoolingAsyncValueTaskMethodBuilder<VoidTaskResult>.s_syncSuccessSentinel; 21private StateMachineBox? m_task; // Debugger depends on the exact name of this field. 76StateMachineBox? box = m_task ??= PoolingAsyncValueTaskMethodBuilder<VoidTaskResult>.CreateWeaklyTypedStateMachineBox();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs (8)
25internal static readonly StateMachineBox s_syncSuccessSentinel = new SyncSuccessSentinelStateMachineBox(); 28private StateMachineBox? m_task; // Debugger depends on the exact name of this field. 68internal static void SetException(Exception exception, [NotNull] ref StateMachineBox? boxFieldRef) 96StateMachineBox? box = m_task ??= CreateWeaklyTypedStateMachineBox(); 112ref TAwaiter awaiter, ref TStateMachine stateMachine, ref StateMachineBox? box) 148ref TAwaiter awaiter, ref TStateMachine stateMachine, [NotNull] ref StateMachineBox? boxRef) 163[NotNull] ref StateMachineBox? boxFieldRef) 233internal static StateMachineBox CreateWeaklyTypedStateMachineBox() => new StateMachineBox<IAsyncStateMachine>();