Files
2026-04-10 22:50:51 +02:00

146 lines
7.1 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System
{
/// <summary>Represents a weak reference, which references an object while still allowing that object to be reclaimed by garbage collection.</summary>
// 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()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.WeakReference" /> class, referencing the specified object.</summary>
/// <param name="target">The object to track or <see langword="null" />.</param>
// Token: 0x060010B9 RID: 4281 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60010B9")]
[Address(RVA = "0x328BCD0", Offset = "0x328AAD0", VA = "0x18328BCD0")]
public WeakReference(object target)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.WeakReference" /> class, referencing the specified object and using the specified resurrection tracking.</summary>
/// <param name="target">An object to track.</param>
/// <param name="trackResurrection">Indicates when to stop tracking the object. If <see langword="true" />, the object is tracked after finalization; if <see langword="false" />, the object is only tracked until finalization.</param>
// 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)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.WeakReference" /> class, using deserialized data from the specified serialization and stream objects.</summary>
/// <param name="info">An object that holds all the data needed to serialize or deserialize the current <see cref="T:System.WeakReference" /> object.</param>
/// <param name="context">(Reserved) Describes the source and destination of the serialized stream specified by <paramref name="info" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="info" /> is <see langword="null" />.</exception>
// 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)
{
}
/// <summary>Gets an indication whether the object referenced by the current <see cref="T:System.WeakReference" /> object has been garbage collected.</summary>
/// <returns>
/// <see langword="true" /> if the object referenced by the current <see cref="T:System.WeakReference" /> object has not been garbage collected and is still accessible; otherwise, <see langword="false" />.</returns>
// 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);
}
}
/// <summary>Gets or sets the object (the target) referenced by the current <see cref="T:System.WeakReference" /> object.</summary>
/// <returns>
/// <see langword="null" /> if the object referenced by the current <see cref="T:System.WeakReference" /> object has been garbage collected; otherwise, a reference to the object referenced by the current <see cref="T:System.WeakReference" /> object.</returns>
/// <exception cref="T:System.InvalidOperationException">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.</exception>
// 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
{
}
}
/// <summary>Gets an indication whether the object referenced by the current <see cref="T:System.WeakReference" /> object is tracked after it is finalized.</summary>
/// <returns>
/// <see langword="true" /> if the object the current <see cref="T:System.WeakReference" /> object refers to is tracked after finalization; or <see langword="false" /> if the object is only tracked until finalization.</returns>
// 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);
}
}
/// <summary>Discards the reference to the target represented by the current <see cref="T:System.WeakReference" /> object.</summary>
// 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()
{
}
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with all the data needed to serialize the current <see cref="T:System.WeakReference" /> object.</summary>
/// <param name="info">An object that holds all the data needed to serialize or deserialize the current <see cref="T:System.WeakReference" /> object.</param>
/// <param name="context">(Reserved) The location where serialized data is stored and retrieved.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="info" /> is <see langword="null" />.</exception>
// 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;
}
}