57 lines
2.2 KiB
C#
57 lines
2.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.CompilerServices
|
|
{
|
|
/// <summary>Holds a reference to a value.</summary>
|
|
/// <typeparam name="T">The type of the value that the <see cref="T:System.Runtime.CompilerServices.StrongBox`1" /> references.</typeparam>
|
|
// Token: 0x02000265 RID: 613
|
|
[Token(Token = "0x2000265")]
|
|
public class StrongBox<T> : IStrongBox
|
|
{
|
|
/// <summary>Initializes a new StrongBox which can receive a value when used in a reference call.</summary>
|
|
// Token: 0x06000C4F RID: 3151 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000C4F")]
|
|
[Address(RVA = "0x1CC5E40", Offset = "0x1CC4E40", VA = "0x181CC5E40")]
|
|
public StrongBox()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.CompilerServices.StrongBox`1" /> class by using the supplied value. </summary>
|
|
/// <param name="value">A value that the <see cref="T:System.Runtime.CompilerServices.StrongBox`1" /> will reference.</param>
|
|
// Token: 0x06000C50 RID: 3152 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000C50")]
|
|
[Address(RVA = "0x1CC9D80", Offset = "0x1CC8D80", VA = "0x181CC9D80")]
|
|
public StrongBox(T value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the value that the <see cref="T:System.Runtime.CompilerServices.StrongBox`1" /> references.</summary>
|
|
/// <returns>The value that the <see cref="T:System.Runtime.CompilerServices.StrongBox`1" /> references.</returns>
|
|
// Token: 0x17000270 RID: 624
|
|
// (get) Token: 0x06000C51 RID: 3153 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000C52 RID: 3154 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000270")]
|
|
object IStrongBox.Value
|
|
{
|
|
[Token(Token = "0x6000C51")]
|
|
[Address(RVA = "0x2F02BB0", Offset = "0x2F01BB0", VA = "0x182F02BB0", Slot = "4")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000C52")]
|
|
[Address(RVA = "0x2F02BF0", Offset = "0x2F01BF0", VA = "0x182F02BF0", Slot = "5")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Represents the value that the <see cref="T:System.Runtime.CompilerServices.StrongBox`1" /> references.</summary>
|
|
// Token: 0x040004A6 RID: 1190
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x40004A6")]
|
|
public T Value;
|
|
}
|
|
}
|