BraintreeEncryption.Library.BouncyCastle.Asn1.Asn1TaggedObject.Asn1Equals C# (CSharp) Method

Asn1Equals() protected method

protected Asn1Equals ( Asn1Object asn1Object ) : bool
asn1Object Asn1Object
return bool
        protected override bool Asn1Equals(
			Asn1Object asn1Object)
        {
            Asn1TaggedObject other = asn1Object as Asn1TaggedObject;

            if (other == null)
                return false;

            return this.tagNo == other.tagNo
            //				&& this.empty == other.empty
                && this.explicitly == other.explicitly   // TODO Should this be part of equality?
                && Platform.Equals(GetObject(), other.GetObject());
        }