Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.2.0" />

 ResolutionContext

public class ResolutionContext

public bool IsRequestedFromRoot { get; }

public bool NullResultAllowed { get; }

public void AddDefinedVariable(int key, ParameterExpression parameter)

public void AddDefinedVariable(ParameterExpression parameter)

public void AddInstruction(Expression instruction)