Plenty of suggestions here
http://stackoverflow.com/questions/26733/getting-all-types-that-implement-an-interface-with-c-3-5/26885

On Tue, Sep 15, 2009 at 2:58 PM, Tuna Toksoz <[email protected]> wrote:

> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to