title: C#: Have a class method return itself
body: <p>I'm editing a piece of code where there are two separate classes Application and LogIn.</p>
  
  <pre><code>public class Application: WebEntity
  {
      public void logInMethod()
      {
          LogIn logInObject = new LogIn();
          this = logInObject.logUserIn("user", "password");
      }
  }
  </code></pre>
  
  <p>Since logging in is a feature of the Application, I want to create a method that uses LogIn. The logIn.logUserIn("user", "password") currently return an object of Application. I want to be able to do something like whats done on step 6 (above). Is this possible?</p>