title: Method Within A Method
body: <p>I am creating a C# library with some reusable code and was trying to create a method inside a method. I have a method like this:</p>
  
  <pre><code>public static void Method1()
  {
     // Code
  }
  </code></pre>
  
  <p>What I would like to do is this:</p>
  
  <pre><code>public static void Method1()
  {
     public static void Method2()
     {
     }
     public static void Method3()
     {
     }
  }
  </code></pre>
  
  <p>Then I could choose either <code>Method1.Method2</code> or <code>Method1.Method3</code>. Obviously the compiler isn't happy about this, any help is much appreciated. Thanks.</p>