title: Cannot access a non-static member of outer type via nested type
body: <p>I have error </p>
  
  <blockquote>
    <p>Cannot access a non-static member of outer type 'Project.Neuro' via
    nested type 'Project.Neuro.Net'</p>
  </blockquote>
  
  <p>with code like this (simplified):</p>
  
  <pre><code>class Neuro
  {
      public class Net
      {
          public void SomeMethod()
          {
              int x = OtherMethod(); // error is here
          }
      }
  
      public int OtherMethod() // its outside Neuro.Net class
      {
          return 123;  
      }
  }
  </code></pre>
  
  <p>I can move problematic method to Neuro.Net class, but I need this method outside.</p>
  
  <p>Im kind of objective programming newbie.</p>
  
  <p>Thanks in advance.</p>