Код: Выделить всё
Assembly asm = Assembly.GetAssembly(this.GetType());
foreach (Type type in asm.GetTypes())
{
MyAttribute attr = Attribute.GetCustomAttribute(type, typeof(MyAttribute)) as MyAttribute;
if(attr != null && [type is inherited from Iinterface])
{
...
}
}
Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/433 ... ce-c-sharp
Мобильная версия