C# - How does the compiler find the another part of the partial class?
<p>I am using VS2010 SP1.</p>

<p>After creating a demo project for C# Form application, my solution structure has the following information</p>

<pre><code>Form1.cs
   Form1.Designer.cs
   Form1.resx

// File Form1.cs
namespace WinFormApp
{
  public partial class Form1 : Form
  {
    public Form1()
    {
      InitializeComponent();
    }
  }
}

// File Form1.Designer.cs
namespace WinFormApp
{
  partial class Form1
  {

    private void InitializeComponent()
    {
      ...
    }
    ...
   }
}
</code></pre>

<p>Here is the question,
I can see the Form1 is a partial class. However, <strong>how does the compiler know where to find the another part of it?</strong> *<em>In other words, is there a binding between the file Form1.cs and Form1.Designer.cs?</em>* Here, as you can see, the other part is defined inside Form1.Designer.cs. I assume there are hints out there so that the compiler can quickly find all implementation code for a partial class. Please correct me.</p>

<p>Thank you</p>
