title: How do you do Impersonation in .NET?
body: <p>Is there a simple out of the box way to impersonate a user in .NET?</p>
  
  <p>So far I've been using <a href="http://www.codeproject.com/KB/cs/zetaimpersonator.aspx" rel="noreferrer">this class from code project</a> for all my impersonation requirements.</p>
  
  <p>Is there a better way to do it by using .NET Framework?</p>
  
  <p>I have a user credential set, (username, password, domain name) which represents the identity I need to impersonate.</p>