summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1Object.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-11-12 01:37:42 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-11-12 01:37:42 +0700
commitc0bf600ca228f47b15472d24edd9f0b2d931f18b (patch)
tree449d0c6ba00a0eef39aea1bbd34ec53e65cf57f4 /crypto/src/asn1/Asn1Object.cs
parentRefactor tagged object parsing (diff)
downloadBouncyCastle.NET-ed25519-c0bf600ca228f47b15472d24edd9f0b2d931f18b.tar.xz
Add new Equals method
Diffstat (limited to 'crypto/src/asn1/Asn1Object.cs')
-rw-r--r--crypto/src/asn1/Asn1Object.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1Object.cs b/crypto/src/asn1/Asn1Object.cs
index e6498060d..9945a7fae 100644
--- a/crypto/src/asn1/Asn1Object.cs
+++ b/crypto/src/asn1/Asn1Object.cs
@@ -20,6 +20,11 @@ namespace Org.BouncyCastle.Asn1
             asn1Out.FlushInternal();
         }
 
+        public bool Equals(Asn1Object other)
+        {
+            return this == other || Asn1Equals(other);
+        }
+
         /// <summary>Create a base ASN.1 object from a byte array.</summary>
         /// <param name="data">The byte array to parse.</param>
         /// <returns>The base ASN.1 object represented by the byte array.</returns>