NBitcoin.BouncyCastle.Asn1.Asn1Object.CallAsn1Equals C# (CSharp) Method

CallAsn1Equals() public method

public CallAsn1Equals ( Asn1Object obj ) : bool
obj Asn1Object
return bool
		public bool CallAsn1Equals(Asn1Object obj)
		{
			return Asn1Equals(obj);
		}

Usage Example

示例#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));
        }