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: 0x02000252 RID: 594
|
|
[Token(Token = "0x2000252")]
|
|
public class StrongBox<T> : IStrongBox
|
|
{
|
|
/// <summary>Initializes a new StrongBox which can receive a value when used in a reference call.</summary>
|
|
// Token: 0x06000B7E RID: 2942 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000B7E")]
|
|
[Address(RVA = "0x118F5A0", Offset = "0x118E3A0", VA = "0x18118F5A0")]
|
|
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: 0x06000B7F RID: 2943 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000B7F")]
|
|
[Address(RVA = "0x1195570", Offset = "0x1194370", VA = "0x181195570")]
|
|
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: 0x17000247 RID: 583
|
|
// (get) Token: 0x06000B80 RID: 2944 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000B81 RID: 2945 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x17000247")]
|
|
object IStrongBox.Value
|
|
{
|
|
[Token(Token = "0x6000B80")]
|
|
[Address(RVA = "0x28EB9F0", Offset = "0x28EA7F0", VA = "0x1828EB9F0", Slot = "4")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000B81")]
|
|
[Address(RVA = "0x28EBA30", Offset = "0x28EA830", VA = "0x1828EBA30", Slot = "5")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Represents the value that the <see cref="T:System.Runtime.CompilerServices.StrongBox`1" /> references.</summary>
|
|
// Token: 0x04000456 RID: 1110
|
|
[FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x4000456")]
|
|
public T Value;
|
|
}
|
|
}
|