1 implementation of IStrongBox
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\StrongBox.cs (1)
12public class StrongBox<T> : IStrongBox
43 references to IStrongBox
netstandard (1)
netstandard.cs (1)
1553[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IStrongBox))]
System.Core (1)
System.Core.cs (1)
191[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IStrongBox))]
System.Linq.Expressions (39)
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (2)
26public readonly IStrongBox[]? Closure; 37internal InterpretedFrame(Interpreter interpreter, IStrongBox[]? closure)
System\Linq\Expressions\Interpreter\LightCompiler.cs (3)
3144IStrongBox box = frame.Closure![_parameter.Index]; 3149var box = (IStrongBox)frame.Data[_parameter.Index]!;
System\Linq\Expressions\Interpreter\LightDelegateCreator.cs (1)
29internal Delegate CreateDelegate(IStrongBox[]? closure)
System\Linq\Expressions\Interpreter\LightLambda.cs (2)
18private readonly IStrongBox[]? _closure; 27internal LightLambda(LightDelegateCreator delegateCreator, IStrongBox[]? closure)
System\Linq\Expressions\Interpreter\LocalAccess.cs (11)
71var box = (IStrongBox)frame.Data[_index]!; 89IStrongBox box = frame.Closure![_index]; 107IStrongBox box = frame.Closure![_index]; 175var box = (IStrongBox)frame.Data[_index]!; 193var box = (IStrongBox)frame.Data[_index]!; 212IStrongBox box = frame.Closure![_index]; 467var ret = new IStrongBox[_count]; 470ret[i] = (IStrongBox)frame.Pop()!;
System\Linq\Expressions\Interpreter\RuntimeVariables.cs (3)
10private readonly IStrongBox[] _boxes; 12private RuntimeVariables(IStrongBox[] boxes) 31internal static IRuntimeVariables Create(IStrongBox[] boxes) => new RuntimeVariables(boxes);
System\Linq\Expressions\Interpreter\TypeOperations.cs (8)
28IStrongBox[]? closure; 31closure = new IStrongBox[ConsumedStack]; 34closure[i] = (IStrongBox?)frame.Pop()!; 578var boxes = new List<IStrongBox>(); 583IStrongBox? box = GetBox(node.Variables[i]); 625IStrongBox? box = GetBox(node); 633private IStrongBox? GetBox(ParameterExpression variable) 643return (IStrongBox?)_frame.Data[var.Index];
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (5)
133var boxes = new List<IStrongBox>(); 138IStrongBox? box = GetBox(node.Variables[i]); 175IStrongBox? box = GetBox(node); 183private IStrongBox? GetBox(ParameterExpression variable) 201return (IStrongBox)locals[hoistIndex];
System\Runtime\CompilerServices\RuntimeOps.RuntimeVariableList.cs (2)
97private IStrongBox GetStrongBox(int index) 112return (IStrongBox)result[unchecked((int)closureKey)];
System\Runtime\CompilerServices\RuntimeOps.RuntimeVariables.cs (2)
10private readonly IStrongBox[] _boxes; 12internal RuntimeVariables(IStrongBox[] boxes)
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\StrongBox.cs (1)
36object? IStrongBox.Value
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
600[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IStrongBox))]