[EXaml] Add code for load EXaml
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / EXaml / Operation / GatherMethod.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Reflection;
5 using System.Text;
6 using Tizen.NUI.BaseComponents;
7 using Tizen.NUI.Binding;
8 using Tizen.NUI.Binding.Internals;
9
10 namespace Tizen.NUI.EXaml
11 {
12     internal class GatherMethod : Operation
13     {
14         public GatherMethod(int typeIndex, string methodName)
15         {
16             this.typeIndex = typeIndex;
17             this.methodName = methodName;
18         }
19
20         public void Do()
21         {
22             var type = GatherType.GatheredTypes[typeIndex];
23             var method = type.GetRuntimeMethods().FirstOrDefault(mi => mi.Name == methodName);
24             GatheredMethods.Add(method);
25         }
26
27         private int typeIndex;
28         private string methodName;
29         internal static List<MethodInfo> GatheredMethods = new List<MethodInfo>();
30     }
31 }