Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

149 lines
6.7 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// <summary>Enables compilers to dynamically attach object fields to managed objects.</summary>
/// <typeparam name="TKey">The reference type to which the field is attached.</typeparam>
/// <typeparam name="TValue">The field's type. This must be a reference type.</typeparam>
// Token: 0x02000580 RID: 1408
[Token(Token = "0x2000580")]
public sealed class ConditionalWeakTable<TKey, TValue> where TKey : class where TValue : class
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.CompilerServices.ConditionalWeakTable`2" /> class.</summary>
// Token: 0x06002C8C RID: 11404 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C8C")]
[Address(RVA = "0x2F30480", Offset = "0x2F2F480", VA = "0x182F30480")]
public ConditionalWeakTable()
{
}
/// <summary>Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the <see cref="T:System.Runtime.CompilerServices.ConditionalWeakTable`2" /> object.</summary>
// Token: 0x06002C8D RID: 11405 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C8D")]
[Address(RVA = "0x2F2F6C0", Offset = "0x2F2E6C0", VA = "0x182F2F6C0", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x06002C8E RID: 11406 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C8E")]
[Address(RVA = "0x2F2F970", Offset = "0x2F2E970", VA = "0x182F2F970")]
private void RehashWithoutResize()
{
}
// Token: 0x06002C8F RID: 11407 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C8F")]
[Address(RVA = "0x2F2F900", Offset = "0x2F2E900", VA = "0x182F2F900")]
private void RecomputeSize()
{
}
// Token: 0x06002C90 RID: 11408 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C90")]
[Address(RVA = "0x2F2FBF0", Offset = "0x2F2EBF0", VA = "0x182F2FBF0")]
private void Rehash()
{
}
/// <summary>Adds a key to the table.</summary>
/// <param name="key">The key to add. <paramref name="key" /> represents the object to which the property is attached.</param>
/// <param name="value">The key's property value.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="key" /> already exists.</exception>
// Token: 0x06002C91 RID: 11409 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C91")]
[Address(RVA = "0x2F2F3E0", Offset = "0x2F2E3E0", VA = "0x182F2F3E0")]
public void Add(TKey key, TValue value)
{
}
/// <summary>Removes a key and its value from the table.</summary>
/// <param name="key">The key to remove.</param>
/// <returns>
/// <see langword="true" /> if the key is found and removed; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x06002C92 RID: 11410 RVA: 0x00018D38 File Offset: 0x00016F38
[Token(Token = "0x6002C92")]
[Address(RVA = "0x2F2FF20", Offset = "0x2F2EF20", VA = "0x182F2FF20")]
public bool Remove(TKey key)
{
return default(bool);
}
/// <summary>Gets the value of the specified key.</summary>
/// <param name="key">The key that represents an object with an attached property.</param>
/// <param name="value">When this method returns, contains the attached property value. If <paramref name="key" /> is not found, <paramref name="value" /> contains the default value.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="key" /> is found; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> is <see langword="null" />.</exception>
// Token: 0x06002C93 RID: 11411 RVA: 0x00018D50 File Offset: 0x00016F50
[Token(Token = "0x6002C93")]
[Address(RVA = "0x2F301C0", Offset = "0x2F2F1C0", VA = "0x182F301C0")]
public bool TryGetValue(TKey key, out TValue value)
{
return default(bool);
}
/// <summary>Atomically searches for a specified key in the table and returns the corresponding value. If the key does not exist in the table, the method invokes a callback method to create a value that is bound to the specified key.</summary>
/// <param name="key">The key to search for. <paramref name="key" /> represents the object to which the property is attached.</param>
/// <param name="createValueCallback">A delegate to a method that can create a value for the given <paramref name="key" />. It has a single parameter of type TKey, and returns a value of type TValue.</param>
/// <returns>The value attached to <paramref name="key" />, if <paramref name="key" /> already exists in the table; otherwise, the new value returned by the <paramref name="createValueCallback" /> delegate.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="key" /> or <paramref name="createValueCallback" /> is <see langword="null" />.</exception>
// Token: 0x06002C94 RID: 11412 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002C94")]
[Address(RVA = "0x2F2F730", Offset = "0x2F2E730", VA = "0x182F2F730")]
public TValue GetValue(TKey key, ConditionalWeakTable<TKey, TValue>.CreateValueCallback createValueCallback)
{
return null;
}
// Token: 0x04001964 RID: 6500
[Token(Token = "0x4001964")]
private const int INITIAL_SIZE = 13;
// Token: 0x04001965 RID: 6501
[Token(Token = "0x4001965")]
private const float LOAD_FACTOR = 0.7f;
// Token: 0x04001966 RID: 6502
[Token(Token = "0x4001966")]
private const float COMPACT_FACTOR = 0.5f;
// Token: 0x04001967 RID: 6503
[Token(Token = "0x4001967")]
private const float EXPAND_FACTOR = 1.1f;
// Token: 0x04001968 RID: 6504
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001968")]
private Ephemeron[] data;
// Token: 0x04001969 RID: 6505
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001969")]
private object _lock;
// Token: 0x0400196A RID: 6506
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400196A")]
private int size;
/// <summary>Represents a method that creates a non-default value to add as part of a key/value pair to a <see cref="T:System.Runtime.CompilerServices.ConditionalWeakTable`2" /> object.</summary>
/// <param name="key">The key that belongs to the value to create.</param>
/// <typeparam name="TKey" />
/// <typeparam name="TValue" />
/// <returns>An instance of a reference type that represents the value to attach to the specified key.</returns>
// Token: 0x02000581 RID: 1409
// (Invoke) Token: 0x06002C96 RID: 11414
[Token(Token = "0x2000581")]
public delegate TValue CreateValueCallback(TKey key);
}
}