Manages local variables during the dynamic generation of expression blocks.
 internal VariableUsage(LocalExpressionVariableManager manager, ParameterExpression variable)
 {
     Contract.Requires(null != manager);
     Contract.Requires(null != variable);
     _manager  = manager;
     _variable = variable;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs a new block expression builder.
 /// </summary>
 /// <param name="localManager">The local variable manager to use.</param>
 public BlockExpressionBuilder(LocalExpressionVariableManager localManager = null)
 {
     LocalManager = localManager ?? new LocalExpressionVariableManager();
 }
 internal VariableUsage(LocalExpressionVariableManager manager, ParameterExpression variable) {
     Contract.Requires(null != manager);
     Contract.Requires(null != variable);
     _manager = manager;
     _variable = variable;
 }