private bool IsValidPlugin( Assembly assembly ) { Type[ ] types = assembly.GetExportedTypes( ); return types.Any( type => type.GetInterface( typeof( IPlugin ).FullName ) != null ); }