Release 9.0.0.16429
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / EXaml / GlobalDataList.cs
1 /*
2  * Copyright(c) 2021 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 using System;
18 using System.Collections.Generic;
19 using System.Reflection;
20 using System.Text;
21 using Tizen.NUI.Binding;
22
23 namespace Tizen.NUI.EXaml
24 {
25     internal class GlobalDataList
26     {
27         internal List<Operation> Operations
28         {
29             get;
30         } = new List<Operation>();
31
32         internal List<object> GatheredInstances
33         {
34             get;
35         } = new List<object>();
36
37         internal List<object> ObjectsFromProperty
38         {
39             get;
40         } = new List<object>();
41
42         internal List<EventInfo> GatheredEvents
43         {
44             get;
45         } = new List<EventInfo>();
46
47         internal List<MethodInfo> GatheredMethods
48         {
49             get;
50         } = new List<MethodInfo>();
51
52         internal List<Type> GatheredTypes
53         {
54             get;
55         } = new List<Type>();
56
57         internal List<PropertyInfo> GatheredProperties
58         {
59             get;
60         } = new List<PropertyInfo>();
61
62         internal List<BindableProperty> GatheredBindableProperties
63         {
64             get;
65         } = new List<BindableProperty>();
66
67         private List<AssemblyName> assemblyNameList;
68         internal List<AssemblyName> AssemblyNameList
69         {
70             get
71             {
72                 if (null == assemblyNameList)
73                 {
74                     assemblyNameList = new List<AssemblyName>();
75                     assemblyNameList.Add(EXamlExtensions.MainAssembly.GetName());
76
77                     var assemblyNames = EXamlExtensions.MainAssembly.GetReferencedAssemblies();
78
79                     foreach (var name in assemblyNames)
80                     {
81                         assemblyNameList.Add(name);
82                     }
83                 }
84
85                 return assemblyNameList;
86             }
87         }
88
89         internal List<Assembly> GatheredAssemblies = new List<Assembly>();
90     }
91 }