コード例 #1
0
        protected override void ReflectionFunction(ReflectionAttachedRtFunction function)
        {
            var methodInfo        = function.MethodInfo;
            var changedReturnType = typeChanger.ChangeFunctionReturnType(methodInfo.ReturnType, function.ReturnType, function);

            if (changedReturnType != null)
            {
                function.ReturnType = changedReturnType;
            }

            ChangeParameters(methodInfo, function.Arguments, (type, rtTypeName, rtArgument) => typeChanger.ChangeFunctionParameterType(type, rtTypeName, rtArgument, function));
        }
 protected abstract void ReflectionFunction(ReflectionAttachedRtFunction function);
コード例 #3
0
 public RtTypeName ChangeFunctionReturnType(Type returnType, RtTypeName rtTypeName, ReflectionAttachedRtFunction rtFunction)
 {
     return(ChangeType(returnType, rtTypeName));
 }
コード例 #4
0
 public RtTypeName ChangeFunctionParameterType(Type parameterType, RtTypeName rtTypeName, RtArgument rtArgument, ReflectionAttachedRtFunction rtFunction)
 {
     return(ChangeType(parameterType, rtTypeName));
 }