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?

Reply via email to