title: Compile error: 'x' conflicts with the declaration of 'y.x'?
body: <p>I am getting these errors:</p>
  <blockquote>
  <p>'Map' conflicts with the declaration 'COServer.Map'</p>
  <p>A local variable named 'Map' cannot be declared in this scope because it would give a different meaning to 'Map', which is already used in a 'parent or current' scope to denote something else</p>
  </blockquote>
  <p>Here is my code:</p>
  <pre><code>foreach (int[] RevP in Map.RevPoints)
  {
      if (RevP[0] == (int)(Client.Char.Map))
      {
          Client.Char.Map = (Map.Maps)(RevP[1]);
          Client.Char.CurrentLoc = new Location(RevP[2], RevP[3]);
          Client.Char.PreviousLoc = new Location(RevP[2], RevP[3]);
          break;
      }
  }
  
  foreach (int[][][] Map in Database.Maps)
  {
      if (Map[1][0][0] == (int)(Client.Char.Map))
      {
          foreach (int[] Chars in Map[2])
          {
              if (Chars[0] == 0)
              {
                  Chars[0] = Client.Char.CharID;
                  Chars[1] = Client.Char.CurrentLoc.X;
                  Chars[2] = Client.Char.CurrentLoc.Y;
                  break;
              }
          }
          break;
      }
  }
  </code></pre>