using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; using Cpp2IlInjected; namespace System { /// Represents a weak reference, which references an object while still allowing that object to be reclaimed by garbage collection. // Token: 0x020001B1 RID: 433 [Token(Token = "0x20001B1")] [ComVisible(true)] [Serializable] public class WeakReference : ISerializable { // Token: 0x060010B7 RID: 4279 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60010B7")] [Address(RVA = "0x328BB20", Offset = "0x328A920", VA = "0x18328BB20")] private void AllocateHandle(object target) { } // Token: 0x060010B8 RID: 4280 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60010B8")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] protected WeakReference() { } /// Initializes a new instance of the class, referencing the specified object. /// The object to track or . // Token: 0x060010B9 RID: 4281 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60010B9")] [Address(RVA = "0x328BCD0", Offset = "0x328AAD0", VA = "0x18328BCD0")] public WeakReference(object target) { } /// Initializes a new instance of the class, referencing the specified object and using the specified resurrection tracking. /// An object to track. /// Indicates when to stop tracking the object. If , the object is tracked after finalization; if , the object is only tracked until finalization. // Token: 0x060010BA RID: 4282 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60010BA")] [Address(RVA = "0x328BD10", Offset = "0x328AB10", VA = "0x18328BD10")] public WeakReference(object target, bool trackResurrection) { } /// Initializes a new instance of the class, using deserialized data from the specified serialization and stream objects. /// An object that holds all the data needed to serialize or deserialize the current object. /// (Reserved) Describes the source and destination of the serialized stream specified by . /// /// is . // Token: 0x060010BB RID: 4283 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60010BB")] [Address(RVA = "0x328BD60", Offset = "0x328AB60", VA = "0x18328BD60")] protected WeakReference(SerializationInfo info, StreamingContext context) { } /// Gets an indication whether the object referenced by the current object has been garbage collected. /// /// if the object referenced by the current object has not been garbage collected and is still accessible; otherwise, . // Token: 0x17000194 RID: 404 // (get) Token: 0x060010BC RID: 4284 RVA: 0x0000D320 File Offset: 0x0000B520 [Token(Token = "0x17000194")] public virtual bool IsAlive { [Token(Token = "0x60010BC")] [Address(RVA = "0x328BE60", Offset = "0x328AC60", VA = "0x18328BE60", Slot = "5")] get { return default(bool); } } /// Gets or sets the object (the target) referenced by the current object. /// /// if the object referenced by the current object has been garbage collected; otherwise, a reference to the object referenced by the current object. /// The reference to the target object is invalid. This exception can be thrown while setting this property if the value is a null reference or if the object has been finalized during the set operation. // Token: 0x17000195 RID: 405 // (get) Token: 0x060010BD RID: 4285 RVA: 0x00002082 File Offset: 0x00000282 // (set) Token: 0x060010BE RID: 4286 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x17000195")] public virtual object Target { [Token(Token = "0x60010BD")] [Address(RVA = "0x328BE80", Offset = "0x328AC80", VA = "0x18328BE80", Slot = "6")] get { return null; } [Token(Token = "0x60010BE")] [Address(RVA = "0x328BEB0", Offset = "0x328ACB0", VA = "0x18328BEB0", Slot = "7")] set { } } /// Gets an indication whether the object referenced by the current object is tracked after it is finalized. /// /// if the object the current object refers to is tracked after finalization; or if the object is only tracked until finalization. // Token: 0x17000196 RID: 406 // (get) Token: 0x060010BF RID: 4287 RVA: 0x0000D338 File Offset: 0x0000B538 [Token(Token = "0x17000196")] public virtual bool TrackResurrection { [Token(Token = "0x60010BF")] [Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0", Slot = "8")] get { return default(bool); } } /// Discards the reference to the target represented by the current object. // Token: 0x060010C0 RID: 4288 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60010C0")] [Address(RVA = "0x328BB50", Offset = "0x328A950", VA = "0x18328BB50", Slot = "1")] protected override void Finalize() { } /// Populates a object with all the data needed to serialize the current object. /// An object that holds all the data needed to serialize or deserialize the current object. /// (Reserved) The location where serialized data is stored and retrieved. /// /// is . // Token: 0x060010C1 RID: 4289 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60010C1")] [Address(RVA = "0x328BBD0", Offset = "0x328A9D0", VA = "0x18328BBD0", Slot = "9")] public virtual void GetObjectData(SerializationInfo info, StreamingContext context) { } // Token: 0x040008AC RID: 2220 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x40008AC")] private bool isLongReference; // Token: 0x040008AD RID: 2221 [global::Cpp2IlInjected.FieldOffset(Offset = "0x14")] [Token(Token = "0x40008AD")] private GCHandle gcHandle; } }