Exemplo n.º 1
0
        private static ProxyMethodResolverContext Resolve(object[] args)
        {
            PackedArgs packed = new PackedArgs(args);
            MethodBase method = s_proxyAssembly.ResolveMethodToken(packed.DeclaringType, packed.MethodToken);

            if (method.IsGenericMethodDefinition)
            {
                method = ((MethodInfo)method).MakeGenericMethod(packed.GenericTypes);
            }

            return(new ProxyMethodResolverContext(packed, method));
        }
 public ProxyMethodResolverContext(PackedArgs packed, MethodBase method)
 {
     Packed = packed;
     Method = method;
 }