title: Is it okay to write dispose method for a class?
body: <p>I have a class (called Employee. non static) defined in a class library. I am instantiating that class in another project and calling some methods.</p>
  
  <p>Is it okay to write a Dispose method in that class? The reason I wanted to write custom dispose method because I am calling a webservice inside Employee class.</p>
  
  <pre><code>public class Employee
  {
  
      SoapSample company = new SoapSample();
  
      public Employee()
      {
          company.UserCredentials.UserName = "";
          company.UserCredentials.Password = "";
      }
  
  }
  </code></pre>