collections in C#
<p>I am coming from a C++ background and i am trying to teach myself C# I am still a student and this isnt a school project and that i am on break right now. My main focus has been C/C++, java</p>

<p>I have an old school project from 2 years back that i did in C++ that stores DVD, book, DVD, info in a container and then displaying it. I am trying to make the same program in C#</p>

<p>I have 2 questions that are very similar..</p>

<p>In my program a used typedef on the container and made objects of the container like so:</p>

<pre><code>typedef set&lt;Item*&gt;  ItemSet;

ItemSet allBooks;            // holds all the information
ItemSet allCDS;
ItemSet allDVDs;
</code></pre>

<p>First question is there is no typdef in C# i think its equivalent is using? But i cant use it on a container. Is there a way to do something similar above in C# or should i just create multiple sets?
I decided that Hashset is similar to set in C++</p>

<pre><code>HashSet&lt;Item&gt; keys = new HashSet&lt;Item&gt;();
</code></pre>

<p>Second question is i also used typedef on a set outside the class and then in the private section
i made and object of the set. Can i do this in C#?</p>

<pre><code>typedef set&lt;string&gt; StringSet;

class Item
{

 private:

 string Title;
 StringSet* Keys;      // holds keywords
</code></pre>

<p>I do realize C# has no pointers!</p>
