diff --git a/source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs b/source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs index bed5540dd..631f97ab8 100644 --- a/source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs +++ b/source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs @@ -381,6 +381,14 @@ namespace Cosmos.IL2CPU { } } } + // Queue Types directly related to method + Queue(aMethod.DeclaringType, aMethod, "Declaring Type"); + if (aMethod is System.Reflection.MethodInfo) { + Queue(((System.Reflection.MethodInfo)aMethod).ReturnType, aMethod, "Return Type"); + } + foreach (var xParam in aMethod.GetParameters()) { + Queue(xParam.ParameterType, aMethod, "Parameter"); + } } }