Inheritance: DerStringBase
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerGeneralString str = asn1Object as DerGeneralString;

            if (str == null)
            {
                return(false);
            }
            return(this.str.Equals(str.str));
        }
        public static DerGeneralString GetInstance(Asn1TaggedObject obj, bool isExplicit)
        {
            Asn1Object @object = obj.GetObject();

            if (isExplicit || @object is DerGeneralString)
            {
                return(DerGeneralString.GetInstance(@object));
            }
            return(new DerGeneralString(((Asn1OctetString)@object).GetOctets()));
        }
示例#3
0
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerGeneralString derGeneralString = asn1Object as DerGeneralString;

            if (derGeneralString == null)
            {
                return(false);
            }
            return(str.Equals(derGeneralString.str));
        }
        protected override bool Asn1Equals(
            Asn1Object obj)
        {
            DerGeneralString other = obj as DerGeneralString;

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

            return(this.str.Equals(other.str));
        }
        protected override bool Asn1Equals(Asn1Object asn1Object)
        {
            DerGeneralString derGeneralString = asn1Object as DerGeneralString;

            return(derGeneralString != null && this.str.Equals(derGeneralString.str));
        }