/// <summary> /// Create an extension from the specified object with optional /// criticality flag. /// </summary> /// <param name="Object">The object to encode.</param> /// <param name="Critical">If true, the extension will be marked as /// 'critical' meaning that backwards compatibility will be broken /// and legacy relying parties MUST reject the certificate. Only use /// if this is the intended behavior.</param> public Extension(Goedel.ASN1.Root Object, bool Critical) { this.ObjectIdentifier = Object.OID; this.Critical = Critical; this.Data = Object.DER(); }