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);
public RtTypeName ChangeFunctionReturnType(Type returnType, RtTypeName rtTypeName, ReflectionAttachedRtFunction rtFunction) { return(ChangeType(returnType, rtTypeName)); }
public RtTypeName ChangeFunctionParameterType(Type parameterType, RtTypeName rtTypeName, RtArgument rtArgument, ReflectionAttachedRtFunction rtFunction) { return(ChangeType(parameterType, rtTypeName)); }