void getLocalVariableValue(VariableDefinition variable, out object value) { if (variableValues == null) { variableValues = new VariableValues(blocks.Locals, allBlocks); } var val = variableValues.getValue(variable); if (!val.isValid()) { throw new ApplicationException("Could not get value of local variable"); } value = val.Value; }
bool getLocalVariableValue(VariableDefinition variable, out object value) { if (variableValues == null) { variableValues = new VariableValues(theMethod.Body.Variables, allBlocks); } var val = variableValues.getValue(variable); if (!val.isValid()) { value = null; return(false); } value = val.Value; return(true); }