title: member names cannot be the same as their enclosing type C#
body: <p>The code below is in C# and I'm using Visual Studio 2010. </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Windows;
  
  namespace FrontEnd
  {
      class Flow
      {
          long i;
          private int x,y;
          public int X
          {
              get;set;
          }
          public int Y
          {
              get;set;
          }
  
          private void Flow()
          {
              X = x;
              Y = y;
          }
  
          public void NaturalNumbers(int x, int y)
          {
              for (i = 0; i &lt; 9999; i++)
              {
                  Console.WriteLine(i);
              }
              MessageBox.Show("done");
          }
      }
  }
  </code></pre>
  
  <p>When I compile the above code I get this error:</p>
  
  <blockquote>
    <p>Error: 'Flow': member names cannot be the same as their enclosing type</p>
  </blockquote>
  
  <p>Why? How can I resolve this?</p>