[EXaml] 1.Support List property 2.Support load multi EXaml
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / EXaml / Operation / GatherMethod.cs
index 6028840..452d44a 100755 (executable)
@@ -27,21 +27,23 @@ namespace Tizen.NUI.EXaml
 {
     internal class GatherMethod : Operation
     {
-        public GatherMethod(int typeIndex, string methodName)
+        public GatherMethod(GlobalDataList globalDataList, int typeIndex, string methodName)
         {
             this.typeIndex = typeIndex;
             this.methodName = methodName;
+            this.globalDataList = globalDataList;
         }
 
+        private GlobalDataList globalDataList;
+
         public void Do()
         {
-            var type = GatherType.GatheredTypes[typeIndex];
+            var type = globalDataList.GatheredTypes[typeIndex];
             var method = type.GetRuntimeMethods().FirstOrDefault(mi => mi.Name == methodName);
-            GatheredMethods.Add(method);
+            globalDataList.GatheredMethods.Add(method);
         }
 
         private int typeIndex;
         private string methodName;
-        internal static List<MethodInfo> GatheredMethods = new List<MethodInfo>();
     }
 }