GenericOf<D> foo = new GenericOf<B>();//this will not compile on .net
3.5 hence this is not possible
On 3/1/2010 10:58 AM, SimoneB wrote:
Is there a common way to do this?
class B {}
class D : B {}
Container.Add(GenericOf<B>)
and get an instance of GenericOf<B> by asking:
Container.Resolve<GenericOf<D>>()
?
--
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.