Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/01/10 14:08:38 (15 years ago)
Author:
epitzer
Message:

Use callvirt in generated code for calling hooks (#548)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Default/CompositeSerializers/Storable/StorableReflection.cs

    r3577 r3579  
    6666              DynamicMethod dm = new DynamicMethod("", null, new[] { typeof(object) }, type);
    6767              ILGenerator ilgen = dm.GetILGenerator();
    68               ilgen.Emit(OpCodes.Ldarg_1);
    69               ilgen.Emit(OpCodes.Call, methodInfo);
     68              ilgen.Emit(OpCodes.Ldarg_0);
     69              ilgen.Emit(OpCodes.Callvirt, methodInfo);
    7070              ilgen.Emit(OpCodes.Ret);
    7171              yield return (Hook)dm.CreateDelegate(typeof(Hook));
Note: See TracChangeset for help on using the changeset viewer.