Shouldnt this go to the devel list instead? 2011/9/6 Krzysztof Koźmic <[email protected]>: > Take the following scenario: > > > > public interface IFoo<T> > > {} > > > > public class SimpleFoo<T>: IFoo<T> > > {} > > > > public class StructOnlyFoo<T>: IFoo<T> where T : struct > > {} > > > > public class FooWithBar<T>:IFoo<T> > > { > > public FooWithBar(IBar<T> bar){} > > } > > > > public interface IBar<T> > > {} > > > > public class DefaultCtorBar<T>: IBar<T> where T: new() > > {} > > > > // now you register all those classes in the container as their respective > interfaces, in open generic version > > // and then call container.ResolveAll<IFoo<String>>(); // notice string is > not a struct and does not have public parameterless constructor > > // > > // what should happen ? > > > > > > https://gist.github.com/1197260 > > > > What should be the outcome of that? > > > > Opinions are welcome either here, or in gist comments. > > -- > 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. >
-- Cheers, hammett http://hammett.castleproject.org/ -- 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.
