Exemplo n.º 1
0
        private void SetMethodReturnType(ServicePack retPack, MethodInfo method, IDynamicMethodBuilder methodBuilder)
        {
            if (!allMethodsVoid)
            {
                var matchReturnType = MapType(method.ReturnType, retPack);

                methodBuilder.SetReturnType(matchReturnType);
            }
        }
Exemplo n.º 2
0
        private void SetMethodParams(ServicePack retPack, MethodInfo method, IDynamicMethodBuilder methodBuilder)
        {
            var methodParams = method.GetParameters();

            foreach (var param in methodParams)
            {
                var matchParamType = MapType(param.ParameterType, retPack);

                methodBuilder.SetParameter(matchParamType, param.Name);
            }
        }