Can't you do that with good old reflection? and with some lambda trick? Tuna Toksöz Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Tue, Sep 15, 2009 at 8:50 AM, Wayne Douglas <[email protected]>wrote: > > Hi > > Is there a good way to retrieve all classes from a single namespace? > > like the way the register works: > > <code> > AllTypes > .Of<Controller>() > .FromAssembly(Assembly.Load("Irm.Web.App")) > </code> > > But not for register. > > We basically need to get all DTOs that implement some interface > "IAmDto" or something - from a namespace that contains loads of other > classes we're not interested in. > > > -- > Cheers, > > w:// > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
