public static ArrayList FindByInterface(Type interfaceType)
{
ArrayList list = new ArrayList();
Type[] types = System.Reflection.Assembly.GetExecutingAssembly().GetTypes();
foreach (var t in types)
{
try
{
if (IsInterfaceType(t, interfaceType))
{
list.Add(t);
}
}
catch (Exception)
{
}
}
return list;
}
}