public static DerBmpString GetInstance(Asn1TaggedObject obj, bool isExplicit) { Asn1Object @object = obj.GetObject(); if (isExplicit || @object is DerBmpString) { return(DerBmpString.GetInstance(@object)); } return(new DerBmpString(Asn1OctetString.GetInstance(@object).GetOctets())); }
protected override bool Asn1Equals(Asn1Object asn1Object) { DerBmpString str = asn1Object as DerBmpString; if (str == null) { return(false); } return(this.str.Equals(str.str)); }
protected override bool Asn1Equals(Asn1Object asn1Object) { DerBmpString derBmpString = asn1Object as DerBmpString; if (derBmpString == null) { return(false); } return(str.Equals(derBmpString.str)); }
protected override bool Asn1Equals( Asn1Object obj) { DerBmpString other = obj as DerBmpString; if (other == null) { return(false); } return(this.str.Equals(other.str)); }
protected override bool Asn1Equals(Asn1Object asn1Object) { DerBmpString derBmpString = asn1Object as DerBmpString; return(derBmpString != null && this.str.Equals(derBmpString.str)); }