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