Exemple #1
0
        private ProxyMethodResolverContext Resolve(object[] args)
        {
            var packed = new PackedArgs(args);
            var method = _proxyAssembly.ResolveMethodToken(packed.DeclaringType, packed.MethodToken);

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

            return(new ProxyMethodResolverContext(packed, method));
        }
Exemple #2
0
 public ProxyMethodResolverContext(PackedArgs packed, MethodInfo method)
 {
     Packed = packed;
     Method = method;
 }