mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-15 14:59:30 +00:00
166f9b499e
Created test project.
18 lines
447 B
C#
18 lines
447 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Media.Effects;
|
|
|
|
namespace WpfExtended.Tests.Utilities
|
|
{
|
|
internal static class TypeCrawler
|
|
{
|
|
public static IEnumerable<Type> GetEffectTypes<T>()
|
|
{
|
|
return AppDomain.CurrentDomain.GetAssemblies()
|
|
.SelectMany(a => a.GetTypes()
|
|
.Where(t => t.IsAssignableTo(typeof(T))));
|
|
}
|
|
}
|
|
}
|