Doesn't this work:
.Where(item=>item.IsInterface && typeof(T).IsAssignableFrom(item))
IE:
public static class Extensions {
public static BasedOnDescriptor
BasedOnInterfaceInheriting<T>(this FromAssemblyDescriptor assembly) {
return assembly.Where(item => item.IsInterface &&
typeof(T).IsAssignableFrom(item));
}
}
(we have very similar code to this in our registration code but I
haven't tested this specifically)
On 2/7/2011 8:04 AM, Nick Peeples wrote:
I'm looking for this functionality too. Is/will something be added, or
should we just implement our own scanners?
--
You received this message because you are subscribed to the Google Groups "Castle
Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.