title: C#: The type or namespace name 'class' could not be found(are you missing a using directive for an assembly reference?)
body: <pre><code>class World
  {
      bool _playerHasWonGame = false;
      public void Update()
      {
          Entity player = FindEntity("Player"); //ERROR: The type or namespace name 'Entity' could not be found(are you missing a using directive for an assembly reference?)
      }
  
      private Entity FindEntity(string p) //Same ERROR
      {
          throw new NotImplementedException();
      }
  }
  
  
  
  class Inventory
  {
      public bool Contains(Entity entity)
      {
          return false;
      }
  }
  
  public class Entity
  {
      public Inventory Inventory { get; set; }
  }
  </code></pre>
  
  <p>The error part is Entity.</p>
  
  <p>I create Entity class, and try to make Entity object in World class.</p>
  
  <p>As I understood, it should work. I just tried to make object like other C# programmer does. But, looks like my compiler cannot find Entity definition.</p>