// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Runtime.CompilerServices
{
public partial class RuntimeOps
{
internal sealed class RuntimeVariables : IRuntimeVariables
{
private readonly IStrongBox[] _boxes;
internal RuntimeVariables(IStrongBox[] boxes)
{
_boxes = boxes;
}
int IRuntimeVariables.Count => _boxes.Length;
object? IRuntimeVariables.this[int index]
{
get
{
return _boxes[index].Value;
}
set
{
_boxes[index].Value = value;
}
}
}
}
}
|