Exemple #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));
        }
    public sealed override bool Equals(object obj)
    {
        if (obj == this)
        {
            return(true);
        }
        IAsn1Convertible asn1Convertible = obj as IAsn1Convertible;

        if (asn1Convertible == null)
        {
            return(false);
        }
        Asn1Object asn1Object  = ToAsn1Object();
        Asn1Object asn1Object2 = asn1Convertible.ToAsn1Object();

        if (asn1Object != asn1Object2)
        {
            return(asn1Object.CallAsn1Equals(asn1Object2));
        }
        return(true);
    }