summary refs log tree commit diff
path: root/crypto/src/openpgp
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/openpgp')
-rw-r--r--crypto/src/openpgp/PgpObjectFactory.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/openpgp/PgpObjectFactory.cs b/crypto/src/openpgp/PgpObjectFactory.cs
index c31cd221c..3abb6c945 100644
--- a/crypto/src/openpgp/PgpObjectFactory.cs
+++ b/crypto/src/openpgp/PgpObjectFactory.cs
@@ -151,7 +151,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp
             PgpObject pgpObject;
             while ((pgpObject = NextPgpObject()) != null)
             {
-                if (type.IsAssignableFrom(pgpObject.GetType()))
+                if (type.IsInstanceOfType(pgpObject.GetType()))
                 {
                     result.Add(pgpObject);
                 }