2 using System.Collections.Generic;
3 using System.Reflection;
6 namespace Tizen.NUI.EXaml
8 internal class GatherTypesBlock : Action
10 public GatherTypesBlock(Action parent)
15 private Action parent;
17 public Action DealChar(char c)
27 childOp = new GetValueListAction(')', this);
38 private GetValueListAction childOp;
45 public void OnActive()
47 LoadEXaml.Operations.Add(GatherType(childOp.ValueList));
51 private GatherType GatherType(List<object> valueList)
53 int assemblyIndex = int.Parse(valueList[0] as string);
54 string typeName = valueList[valueList.Count - 1] as string;
56 if (valueList.Count > 2)
58 List<int> genericTypeIndexs = new List<int>();
59 var genericTypeIndexList = valueList[1] as List<object>;
60 foreach (var index in genericTypeIndexList)
62 genericTypeIndexs.Add((int)index);
65 return new GatherType(assemblyIndex, typeName, genericTypeIndexs);
69 return new GatherType(assemblyIndex, typeName);