Example #1
0
 public void ReplayTo(IILDynamicType target)
 {
     _trueContent = target.DefineConstructor(_parameters);
     if (_expectedLength >= 0)
     {
         _trueContent.ExpectedLength(_expectedLength);
     }
 }
Example #2
0
            public void ReplayTo(IILDynamicType target)
            {
                var state = ShelveSourceDefinitionBegin(target);

                _trueContent = target.DefineConstructor(_parameters);
                if (_expectedLength >= 0)
                {
                    _trueContent.ExpectedLength(_expectedLength);
                }
                ShelveSourceDefinitionEnd(state);
            }