title: How to declare methods inside methods
body: <p>I have a class like this:</p>
  
  <pre><code>public Class Work
  {
     public DataTable GetWork()
        {
           //return a datatable which contains information about working hourse
  
        }
  
  }
  </code></pre>
  
  <p>I want to declare another method isnide the GetWork method.</p>
  
  <p>Actually I want to create a class in which I can call something like this:</p>
  
  <pre><code>DataTable myData=Work.GetWork.ToDays()//Returns work days
  DataTable myOtherData=Work.GetWork.ToHour();//Returns work hours
  </code></pre>
  
  <p>How can I achieve the above state?
  Thanks in advance and pardon my poor english :(</p>