using System; using Cpp2IlInjected; namespace System.Runtime.CompilerServices { /// Enables compilers to dynamically attach object fields to managed objects. /// The reference type to which the field is attached. /// The field's type. This must be a reference type. // Token: 0x02000562 RID: 1378 [Token(Token = "0x2000562")] public sealed class ConditionalWeakTable where TKey : class where TValue : class { /// Initializes a new instance of the class. // Token: 0x06002A7D RID: 10877 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002A7D")] [Address(RVA = "0x28E6DC0", Offset = "0x28E5BC0", VA = "0x1828E6DC0")] public ConditionalWeakTable() { } /// Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the object. // 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() { } /// Adds a key to the table. /// The key to add. represents the object to which the property is attached. /// The key's property value. /// /// is . /// /// already exists. // 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) { } /// Removes a key and its value from the table. /// The key to remove. /// /// if the key is found and removed; otherwise, . /// /// is . // 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); } /// Gets the value of the specified key. /// The key that represents an object with an attached property. /// When this method returns, contains the attached property value. If is not found, contains the default value. /// /// if is found; otherwise, . /// /// is . // 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); } /// 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. /// The key to search for. represents the object to which the property is attached. /// A delegate to a method that can create a value for the given . It has a single parameter of type TKey, and returns a value of type TValue. /// The value attached to , if already exists in the table; otherwise, the new value returned by the delegate. /// /// or is . // 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.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; /// Represents a method that creates a non-default value to add as part of a key/value pair to a object. /// The key that belongs to the value to create. /// /// /// An instance of a reference type that represents the value to attach to the specified key. // Token: 0x02000563 RID: 1379 // (Invoke) Token: 0x06002A87 RID: 10887 [Token(Token = "0x2000563")] public delegate TValue CreateValueCallback(TKey key); } }