Beispiel #1
0
        Type[] GetMethodParameterTypes(MethodBase method)
        {
            var list = new List <Type>();

            if (ResolverUtils.HasThis(method))
            {
                list.Add(method.DeclaringType);
            }

            foreach (var param in method.GetParameters())
            {
                list.Add(param.ParameterType);
            }

            thisArgIndex = list.Count;
            list.Add(methodsRewriter.GetType());

            return(list.ToArray());
        }