From 2cb5737cf77952dbbf1bd281f3a9494af39b239b Mon Sep 17 00:00:00 2001 From: mterwoord_cp <7cd3fd84a0151ea055c2f79e4d2eef9576fe9afesxUZAwxD> Date: Sun, 13 Sep 2009 12:58:22 +0000 Subject: [PATCH] --- source2/IL2PCU/Cosmos.IL2CPU/ILScanner.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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"); + } } }