blob: d8178e731a31d0750a793b58393b6d4705cb7d40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
private static Type[] GetAllVisualElementTypes()
{
return typeof(VisualElement).Assembly.GetTypes()
.Where(t => t != typeof(VisualElement) &&
t != typeof(Panel) &&
!t.IsAbstract &&
!typeof(IMElement).IsAssignableFrom(t) &&
!typeof(IMContainer).IsAssignableFrom(t) &&
typeof(VisualElement).IsAssignableFrom(t)).ToArray();
}
// to this
private static Type[] GetAllVisualElementAssetTypes()
{
return typeof(VisualElement).Assembly.GetTypes()
.Where(t => t != typeof(VisualElement) &&
t != typeof(Panel) &&
!t.IsAbstract &&
!typeof(IMElement).IsAssignableFrom(t) &&
!typeof(IMContainer).IsAssignableFrom(t) &&
typeof(VisualElement).IsAssignableFrom(t)).ToArray();
}
|