title: Can you use a class inside of a function in C#
body: <p>I was wondering if I could use a class inside of a function.  I would the call the function in another file using     using filename.FuntionName();     I made the class public so that it would more likely cooperate.  Also, would     using filename.FunctionName();  call the function from the other file, or just use it as a resource?  Well, here is the code:</p>
  
  <pre><code>namespace file
  {
  public void file()
  {
      public class file
      {
          /*function
          code*/
          }
      }
  }       
  </code></pre>