Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

118 lines
4.9 KiB
C#

using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// <summary>Represents a builder for asynchronous methods that do not return a value.</summary>
// Token: 0x02000533 RID: 1331
[Token(Token = "0x2000533")]
public struct AsyncVoidMethodBuilder
{
/// <summary>Creates an instance of the <see cref="T:System.Runtime.CompilerServices.AsyncVoidMethodBuilder" /> class.</summary>
/// <returns>A new instance of the builder.</returns>
// Token: 0x060029FB RID: 10747 RVA: 0x000167D0 File Offset: 0x000149D0
[Token(Token = "0x60029FB")]
[Address(RVA = "0x294BAE0", Offset = "0x294A8E0", VA = "0x18294BAE0")]
public static AsyncVoidMethodBuilder Create()
{
return default(AsyncVoidMethodBuilder);
}
/// <summary>Begins running the builder with the associated state machine.</summary>
/// <param name="stateMachine">The state machine instance, passed by reference.</param>
/// <typeparam name="TStateMachine">The type of the state machine.</typeparam>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stateMachine" /> is <see langword="null" />.</exception>
// Token: 0x060029FC RID: 10748 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029FC")]
[Address(RVA = "0x16D1600", Offset = "0x16D0400", VA = "0x1816D1600")]
[DebuggerStepThrough]
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
{
}
/// <summary>Associates the builder with the specified state machine.</summary>
/// <param name="stateMachine">The state machine instance to associate with the builder.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stateMachine" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The state machine was previously set.</exception>
// Token: 0x060029FD RID: 10749 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029FD")]
[Address(RVA = "0x294BDD0", Offset = "0x294ABD0", VA = "0x18294BDD0")]
public void SetStateMachine(IAsyncStateMachine stateMachine)
{
}
/// <summary>Schedules the state machine to proceed to the next action when the specified awaiter completes. This method can be called from partially trusted code.</summary>
/// <param name="awaiter">The awaiter.</param>
/// <param name="stateMachine">The state machine.</param>
/// <typeparam name="TAwaiter">The type of the awaiter.</typeparam>
/// <typeparam name="TStateMachine">The type of the state machine.</typeparam>
// Token: 0x060029FE RID: 10750 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029FE")]
[Address(RVA = "0x16CB490", Offset = "0x16CA290", VA = "0x1816CB490")]
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine
{
}
/// <summary>Marks the method builder as successfully completed.</summary>
/// <exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
// Token: 0x060029FF RID: 10751 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029FF")]
[Address(RVA = "0x294BD30", Offset = "0x294AB30", VA = "0x18294BD30")]
public void SetResult()
{
}
/// <summary>Binds an exception to the method builder.</summary>
/// <param name="exception">The exception to bind.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="exception" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
// Token: 0x06002A00 RID: 10752 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A00")]
[Address(RVA = "0x294BBD0", Offset = "0x294A9D0", VA = "0x18294BBD0")]
public void SetException(Exception exception)
{
}
// Token: 0x06002A01 RID: 10753 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A01")]
[Address(RVA = "0x294BB50", Offset = "0x294A950", VA = "0x18294BB50")]
private void NotifySynchronizationContextOfCompletion()
{
}
// Token: 0x1700063A RID: 1594
// (get) Token: 0x06002A02 RID: 10754 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700063A")]
private Task Task
{
[Token(Token = "0x6002A02")]
[Address(RVA = "0x294BDE0", Offset = "0x294ABE0", VA = "0x18294BDE0")]
get
{
return null;
}
}
// Token: 0x04001868 RID: 6248
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001868")]
private SynchronizationContext m_synchronizationContext;
// Token: 0x04001869 RID: 6249
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x4001869")]
private AsyncMethodBuilderCore m_coreState;
// Token: 0x0400186A RID: 6250
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400186A")]
private Task m_task;
}
}