Ejemplo n.º 1
0
        public sealed override bool Equals(
            object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            IAsn1Convertible other = obj as IAsn1Convertible;

            if (other == null)
            {
                return(false);
            }

            Asn1Object o1 = ToAsn1Object();
            Asn1Object o2 = other.ToAsn1Object();

            return(o1 == o2 || o1.CallAsn1Equals(o2));
        }