Files
niko 8fc35183db a
2026-04-11 22:19:20 +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: 0x02000562 RID: 1378
[Token(Token = "0x2000562")]
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: 0x06002A7D RID: 10877 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A7D")]
[Address(RVA = "0x28E6DC0", Offset = "0x28E5BC0", VA = "0x1828E6DC0")]
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: 0x06002A7E RID: 10878 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A7E")]
[Address(RVA = "0x28E6000", Offset = "0x28E4E00", VA = "0x1828E6000", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x06002A7F RID: 10879 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A7F")]
[Address(RVA = "0x28E62B0", Offset = "0x28E50B0", VA = "0x1828E62B0")]
private void RehashWithoutResize()
{
}
// Token: 0x06002A80 RID: 10880 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A80")]
[Address(RVA = "0x28E6240", Offset = "0x28E5040", VA = "0x1828E6240")]
private void RecomputeSize()
{
}
// Token: 0x06002A81 RID: 10881 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A81")]
[Address(RVA = "0x28E6530", Offset = "0x28E5330", VA = "0x1828E6530")]
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: 0x06002A82 RID: 10882 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A82")]
[Address(RVA = "0x28E5D20", Offset = "0x28E4B20", VA = "0x1828E5D20")]
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: 0x06002A83 RID: 10883 RVA: 0x00016968 File Offset: 0x00014B68
[Token(Token = "0x6002A83")]
[Address(RVA = "0x28E6860", Offset = "0x28E5660", VA = "0x1828E6860")]
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: 0x06002A84 RID: 10884 RVA: 0x00016980 File Offset: 0x00014B80
[Token(Token = "0x6002A84")]
[Address(RVA = "0x28E6B00", Offset = "0x28E5900", VA = "0x1828E6B00")]
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: 0x06002A85 RID: 10885 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002A85")]
[Address(RVA = "0x28E6070", Offset = "0x28E4E70", VA = "0x1828E6070")]
public TValue GetValue(TKey key, ConditionalWeakTable<TKey, TValue>.CreateValueCallback createValueCallback)
{
return null;
}
// Token: 0x040018A1 RID: 6305
[Token(Token = "0x40018A1")]
private const int INITIAL_SIZE = 13;
// Token: 0x040018A2 RID: 6306
[Token(Token = "0x40018A2")]
private const float LOAD_FACTOR = 0.7f;
// Token: 0x040018A3 RID: 6307
[Token(Token = "0x40018A3")]
private const float COMPACT_FACTOR = 0.5f;
// Token: 0x040018A4 RID: 6308
[Token(Token = "0x40018A4")]
private const float EXPAND_FACTOR = 1.1f;
// Token: 0x040018A5 RID: 6309
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40018A5")]
private Ephemeron[] data;
// Token: 0x040018A6 RID: 6310
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40018A6")]
private object _lock;
// Token: 0x040018A7 RID: 6311
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40018A7")]
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: 0x02000563 RID: 1379
// (Invoke) Token: 0x06002A87 RID: 10887
[Token(Token = "0x2000563")]
public delegate TValue CreateValueCallback(TKey key);
}
}