Accepting HashSet<T> for unwrapped sets

"Ayende Rahien" <[email protected]> Thu, 9 Oct 2008 22:57:37 +0200
Newsgroups gmane.comp.windows.dotnet.nhibernate.devel
Message-ID <[email protected]>
--===============0540480582942891414==
Content-Type: multipart/alternative; 
	boundary="----=_Part_71431_27897892.1223585857603"

------=_Part_71431_27897892.1223585857603
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Right now, NH requires that the instance  of <set> would be an
implementation of ISet / ISet<T>.It occurred to me that we don't really need
this. We can state that for ICollection<T>, we accept HashSet<T>, which
would satisfy the set requirement, and allow us to drop the compile time
reference from the domain model to iesi.collections.
For that matter, we can do it for list<T> / collection<T>, to support net
2.0 as ell.

Thoughts?

------=_Part_71431_27897892.1223585857603
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Right now, NH requires that the instance &nbsp;of &lt;set&gt; would be an implementation of ISet / ISet&lt;T&gt;.<div>It occurred to me that we don&#39;t really need this. We can state that for ICollection&lt;T&gt;, we accept HashSet&lt;T&gt;, which would satisfy the set requirement, and allow us to drop the compile time reference from the domain model to iesi.collections.</div>
<div>For that matter, we can do it for list&lt;T&gt; / collection&lt;T&gt;, to support net 2.0 as ell.</div><div><br></div><div>Thoughts?</div></div>

------=_Part_71431_27897892.1223585857603--


--===============0540480582942891414==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--===============0540480582942891414==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Nhibernate-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nhibernate-development

--===============0540480582942891414==--