How do you write a immutable set code in c#?
<p>I am trying to make an assignment where I have to use an immutable set where g replaces G.<br>
Thanks in advance.</p>

<p>This is the code I have.</p>

<pre><code>class interface IMMUTABLE_SET[G]    
count:INTEGER  
has(g:G):BOOLEAN  
choice:G  
clones(s:IMMUTABLE_SET{[G]):IMMUTABLE_SET[G]  
is_equal(other:IMMUTABLE_SET[G]):BOOLEAN  
plus(g:G):IMMUTABLE_SET[G]  
minus (g:G):IMMUTABLE_SET[G]  
the end--- class IMMUTABLE_SET[G]
</code></pre>

<p>that is all I have. Thanks in advance. I am supposed to use contracts in the code.</p>
