title: is a 'field' but is used like a type - C#
body: <p>I have to create an implementation of a stack.</p>
  
  <p>I want to create a class that I can use like so:</p>
  
  <pre><code>Stack&lt;string&gt; myStack = new Stack&lt;string&gt;();
  
  myStack.Push("Harold");
  myStack.Push("Evie");
  
  myStack.Pop(); // =&gt; "Evie"
  </code></pre>
  
  <p>Here's what I've written so far:</p>
  
  <pre><code>public class Stack&lt;T&gt; {
      private T[] stack;
      private int stackPointer;
  
      public Stack&lt;T&gt;() {
          this.stackPointer = -1;
      }
  }
  </code></pre>
  
  <p>But already I am getting this error from VS:</p>
  
  <pre><code>this.stackPointer = -1;
  // ERROR: stackPointer is a field but is used like a type.
  </code></pre>
  
  <p>What does this mean and how do I fix it? (Note I am extremely new to C#)</p>