public void ReplayTo(IILDynamicType target) { _trueContent = (IILMethodPrivate)target.DefineMethod(_name, _returns, _parameters, _methodAttributes); if (_expectedLength >= 0) { _trueContent.ExpectedLength(_expectedLength); } }
public void ReplayTo(IILDynamicType target) { var state = ShelveSourceDefinitionBegin(target); _trueContent = (IILMethodPrivate)target.DefineMethod(_name, _returns, _parameters, _methodAttributes); if (_expectedLength >= 0) { _trueContent.ExpectedLength(_expectedLength); } ShelveSourceDefinitionEnd(state); }