81 lines
4.0 KiB
C#
81 lines
4.0 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading
|
|
{
|
|
/// <summary>Represents a callback delegate that has been registered with a <see cref="T:System.Threading.CancellationToken" />.</summary>
|
|
// Token: 0x02000302 RID: 770
|
|
[Token(Token = "0x2000302")]
|
|
public struct CancellationTokenRegistration : IEquatable<CancellationTokenRegistration>, IDisposable
|
|
{
|
|
// Token: 0x06001C90 RID: 7312 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001C90")]
|
|
[Address(RVA = "0x1D63CF0", Offset = "0x1D62AF0", VA = "0x181D63CF0")]
|
|
internal CancellationTokenRegistration(CancellationCallbackInfo callbackInfo, SparselyPopulatedArrayAddInfo<CancellationCallbackInfo> registrationInfo)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001C91 RID: 7313 RVA: 0x000129C0 File Offset: 0x00010BC0
|
|
[Token(Token = "0x6001C91")]
|
|
[Address(RVA = "0x291D5E0", Offset = "0x291C3E0", VA = "0x18291D5E0")]
|
|
[FriendAccessAllowed]
|
|
internal bool TryDeregister()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Threading.CancellationTokenRegistration" /> class.</summary>
|
|
// Token: 0x06001C92 RID: 7314 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001C92")]
|
|
[Address(RVA = "0x291D1F0", Offset = "0x291BFF0", VA = "0x18291D1F0", Slot = "5")]
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
/// <summary>Determines whether the current <see cref="T:System.Threading.CancellationTokenRegistration" /> instance is equal to the specified <see cref="T:System.Threading.CancellationTokenRegistration" />.</summary>
|
|
/// <param name="obj">The other object to which to compare this instance.</param>
|
|
/// <returns>True, if both this and <paramref name="obj" /> are equal. False, otherwise.
|
|
/// Two <see cref="T:System.Threading.CancellationTokenRegistration" /> instances are equal if they both refer to the output of a single call to the same Register method of a <see cref="T:System.Threading.CancellationToken" />.</returns>
|
|
// Token: 0x06001C93 RID: 7315 RVA: 0x000129D8 File Offset: 0x00010BD8
|
|
[Token(Token = "0x6001C93")]
|
|
[Address(RVA = "0x291D3C0", Offset = "0x291C1C0", VA = "0x18291D3C0", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Determines whether the current <see cref="T:System.Threading.CancellationTokenRegistration" /> instance is equal to the specified <see cref="T:System.Threading.CancellationTokenRegistration" />.</summary>
|
|
/// <param name="other">The other <see cref="T:System.Threading.CancellationTokenRegistration" /> to which to compare this instance.</param>
|
|
/// <returns>True, if both this and <paramref name="other" /> are equal. False, otherwise.
|
|
/// Two <see cref="T:System.Threading.CancellationTokenRegistration" /> instances are equal if they both refer to the output of a single call to the same Register method of a <see cref="T:System.Threading.CancellationToken" />.</returns>
|
|
// Token: 0x06001C94 RID: 7316 RVA: 0x000129F0 File Offset: 0x00010BF0
|
|
[Token(Token = "0x6001C94")]
|
|
[Address(RVA = "0x291D4A0", Offset = "0x291C2A0", VA = "0x18291D4A0", Slot = "4")]
|
|
public bool Equals(CancellationTokenRegistration other)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Serves as a hash function for a <see cref="T:System.Threading.CancellationTokenRegistration" />.</summary>
|
|
/// <returns>A hash code for the current <see cref="T:System.Threading.CancellationTokenRegistration" /> instance.</returns>
|
|
// Token: 0x06001C95 RID: 7317 RVA: 0x00012A08 File Offset: 0x00010C08
|
|
[Token(Token = "0x6001C95")]
|
|
[Address(RVA = "0x291D530", Offset = "0x291C330", VA = "0x18291D530", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x04001054 RID: 4180
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4001054")]
|
|
private readonly CancellationCallbackInfo m_callbackInfo;
|
|
|
|
// Token: 0x04001055 RID: 4181
|
|
[FieldOffset(Offset = "0x8")]
|
|
[Token(Token = "0x4001055")]
|
|
private readonly SparselyPopulatedArrayAddInfo<CancellationCallbackInfo> m_registrationInfo;
|
|
}
|
|
}
|