title: Is there an alternate way to add default value to hashset and not disturb the HashSet Count?
body: <p>I want to know is there an alternative way to initialize HashSet with Default Value? For instance,</p>
  
  <pre><code>int[] array=new int[10];
  /*This will initialize all array elements with zero*/-Value Type
  HashSet&lt;int&gt;[] HSet= new HashSet&lt;int&gt;[10];
  /*This will initialize all elements with Null Value*/-Reference Type
  </code></pre>
  
  <p>Now Lets assume i do some operation on HSet,may be HSet[i].ToString(),This would lead to NullReferenceException.To avoid this I would do </p>
  
  <pre><code>for (int i = 0; i &lt; 10; i++)
  {
      HSet[i] =new HashSet&lt;int&gt;(){0};
  }
  </code></pre>
  
  <p>But this will add element to set and increase the set count to one.
  My question is,Is there an alternate way to add default value to hashset and not disturbing the HashSet Count?.i.e the hashset has to be initialized and count must be zero(Ideally no elements in Set) </p>
  
  <p>I tried Initialize method that is provided with HashSet,no luck.    </p>