mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-24 03:56:28 +00:00
34a37ce206
Implement extended launcher with DI. Test launching all effects.
18 lines
460 B
C#
18 lines
460 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace WpfExtended.Tests.Utilities
|
|
{
|
|
internal static class TypeCrawler
|
|
{
|
|
public static IEnumerable<Type> GetTypes<T>()
|
|
{
|
|
return AppDomain.CurrentDomain.GetAssemblies()
|
|
.SelectMany(a => a.GetTypes()
|
|
.Where(t => t.IsAssignableTo(typeof(T)))
|
|
.Where(t => t.IsAbstract is false));
|
|
}
|
|
}
|
|
}
|