title: ...is a type but is used like a variable
body: <p>My idea here is to create a text based adventure game.</p>
  
  <p>I'm trying to use a class in my main class.
  While I'm trying to, it gives me the error:</p>
  
  <p><strong>'MyAdventure.Window' is a 'type' but is used like a 'variable'</strong></p>
  
  <p>I'm not sure on how to solve this. I tried creating a new instance of the class but it didn't seem to work.
  I am fairly new to this, but could anyone please help?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Here's the code for my main class (Program.cs):</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace MyAdventure
  {
  class Program
  {
      static void Main(string[] args)
      {
  
          Console.WriteLine("You cannot feel your body. You don't know where you are.\nThe room you're in is dark. You cannot see much.");
          Console.WriteLine("You decide to stand up, and take a look around. You see a door and a window.\nWhich do you check out first?");
          Console.WriteLine("A. Window\nB. Door");
  
          string userInput = Console.ReadLine();
          //Window theWindow = new Window();
  
          if (userInput.StartsWith("A", StringComparison.CurrentCultureIgnoreCase))
          {
              Window();
          }
          else if (userInput.StartsWith("B", StringComparison.CurrentCultureIgnoreCase))
          {
              Console.WriteLine("You chose the door.");
          }
  
          Console.ReadKey();
  
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>And this is the code (so far) for the other class Window.cs:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace MyAdventure
  {
  public class Window
  {
      static void theWindow()
      {
  
          Console.WriteLine("You approach the window.");
          Console.ReadKey();
  
      }
  }
  </code></pre>
  
  <p>}</p>