title: How can I compare public keys in .NET?
body: <p>I've got an <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate2.aspx" rel="nofollow"><code>X509Certificate2</code></a> containing a public key. I've got an <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsacryptoserviceprovider.aspx" rel="nofollow"><code>RSACryptoServiceProvider</code></a> (which came from calling <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.xml.signedxml.checksignaturereturningkey.aspx" rel="nofollow"><code>SignedXml.CheckSignatureReturningKey</code></a>), also containing a public key.</p>
  
  <p>I want to find out if one came from the other. How can I compare the two?</p>