title: How can I create a constant hashset in c#
body: <p>Right now I have a const array of strings and loop through to check if a value exists. But I want a more efficient way to store my values. I know there's a hashset which I can use like so:</p>
  
  <pre><code>HashSet&lt;string&gt; tblNames = new HashSet&lt;string&gt; ();
  tblNames.Add("a");
  tblNames.Add("b");
  tblNames.Add("c");
  </code></pre>
  
  <p>However, is it possible to make this a constant member of my class like this:</p>
  
  <pre><code>public const HashSet&lt;string&gt; tblNames = new HashSet&lt;string&gt;() { "value1", "value2" };
  </code></pre>