Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x0200054F RID: 1359
[Token(Token = "0x200054F")]
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: 0x06002C08 RID: 11272 RVA: 0x00018BA0 File Offset: 0x00016DA0
[Token(Token = "0x6002C08")]
[Address(RVA = "0x2CE8AA0", Offset = "0x2CE7AA0", VA = "0x182CE8AA0")]
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: 0x06002C09 RID: 11273 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C09")]
[Address(RVA = "0x2A3B9E0", Offset = "0x2A3A9E0", VA = "0x182A3B9E0")]
[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: 0x06002C0A RID: 11274 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C0A")]
[Address(RVA = "0x2CE8D90", Offset = "0x2CE7D90", VA = "0x182CE8D90")]
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: 0x06002C0B RID: 11275 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C0B")]
[Address(RVA = "0x2A36230", Offset = "0x2A35230", VA = "0x182A36230")]
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: 0x06002C0C RID: 11276 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C0C")]
[Address(RVA = "0x2CE8CF0", Offset = "0x2CE7CF0", VA = "0x182CE8CF0")]
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: 0x06002C0D RID: 11277 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C0D")]
[Address(RVA = "0x2CE8B90", Offset = "0x2CE7B90", VA = "0x182CE8B90")]
public void SetException(Exception exception)
{
}
// Token: 0x06002C0E RID: 11278 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C0E")]
[Address(RVA = "0x2CE8B10", Offset = "0x2CE7B10", VA = "0x182CE8B10")]
private void NotifySynchronizationContextOfCompletion()
{
}
// Token: 0x170006B2 RID: 1714
// (get) Token: 0x06002C0F RID: 11279 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170006B2")]
private Task Task
{
[Token(Token = "0x6002C0F")]
[Address(RVA = "0x2CE8DA0", Offset = "0x2CE7DA0", VA = "0x182CE8DA0")]
get
{
return null;
}
}
// Token: 0x0400192B RID: 6443
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400192B")]
private SynchronizationContext m_synchronizationContext;
// Token: 0x0400192C RID: 6444
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x400192C")]
private AsyncMethodBuilderCore m_coreState;
// Token: 0x0400192D RID: 6445
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400192D")]
private Task m_task;
}
}