Beispiel #1
0
        public override MethodHandler GetDelegate(MethodBase method)
        {
            MethodHandler handler;
            var           key = method.MethodHandle.Value;

            if (!methodCache.TryGetValue(key, out handler))
            {
                methodCache.Add(key, handler = EmitHelper.CreateMethodHandler(method));
            }
            return(handler);
        }
Beispiel #2
0
 public override MethodHandler GetDelegate(MethodBase method)
 {
     return(EmitHelper.CreateMethodHandler(method));
 }