title: Catching a Specific WCF FaultException
body: <p>A single tier application can distinguish exceptions by:</p>
  
  <pre><code>Exception ex;
  
  if (ex is System.DirectoryServices.AccountManagement.PasswordException)
      ...
  </code></pre>
  
  <p>where ex is just a generic exception. </p>
  
  <p>When you move to WCF for multi-tier, you lose all this and you need to use the FaultException mechanism.</p>
  
  <p>The problem is that I can't find any way to do the above.</p>
  
  <p>In my client I want to catch the FaultException types and then distinguish between them i.e. something like:</p>
  
  <pre><code>catch (FaultException ex)
  {
      if FaultException is (PasswordExceptionFault)
        ...
      etc
  }
  </code></pre>
  
  <p>Is there a way to do this?</p>
  
  <p>Otherwise I have to have many catch constructs - one for each type of FaultException.</p>