title: Namespace error while defining a BitVector32 collection in C#
body: <p>I have written the following code in visual studio 2019, but it gives me an error saying that <strong>BitVector32 is a namespace but is used as a type here</strong> and <strong>CreateMask() method is not existing in the BitVector32 namespace</strong></p>
  <pre><code>using System;
  using System.Collections.Specialized;
  
  namespace BitVector32
  {
      class Program
      {
          static void Main(string[] args)
          {
              basicVector();
          }
  
          public static void basicVector()
          {
  
              BitVector32 b = new BitVector32(0);
  
              int myBit1 = BitVector32.CreateMask();
              int myBit2 = BitVector32.CreateMask(myBit1);
              int myBit3 = BitVector32.CreateMask(myBit2);
              int myBit4 = BitVector32.CreateMask(myBit3);
              int myBit5 = BitVector32.CreateMask(myBit4);
  
          }
  
      }
  }
  
  </code></pre>
  <p>i referred the Microsoft doc at <a href="https://docs.microsoft.com/en-us/dotnet/api/system.collections.specialized.bitvector32?view=netcore-3.1" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dotnet/api/system.collections.specialized.bitvector32?view=netcore-3.1</a> and did the same but it gives the above mentioned errors</p>