blob: aab6c4983143810d7d65931c26b458baf375a36d (
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();
}
|