Add JIRA ticket please. On Tue, Sep 21, 2010 at 3:07 PM, codekaizen <[email protected]> wrote:
> Greetings - > > I was debugging an exception generated in GenericBagType<T>.Wrap() > where my collection type doesn't implement IList<T>, and discovered > that NH tries to cast the collection to IList<T>. > > This seems to contradict the semantics of <bag>. I was considering > adding better type checking logic in order to use ICollection<T> > instances, but then I wondered if I am missing some policy of bag- > types which is needed in NH to be ordered like lists, and therefore > implement IList<T>. > > Can anyone give advice on whether a more robust type check here would > be an improvement? -- Fabio Maulo
