Org.BouncyCastle.Asn1.X509.X509Extensions.Equivalent C# (CSharp) Method

Equivalent() public method

public Equivalent ( X509Extensions other ) : bool
other X509Extensions
return bool
		public bool Equivalent(
			X509Extensions other)
		{
			if (extensions.Count != other.extensions.Count)
				return false;

			foreach (DerObjectIdentifier oid in extensions.Keys)
			{
				if (!extensions[oid].Equals(other.extensions[oid]))
					return false;
			}

			return true;
		}