public static OtherRecipientInfo GetInstance(object obj) { if (obj == null) { return(null); } OtherRecipientInfo otherRecipientInfo = obj as OtherRecipientInfo; if (otherRecipientInfo != null) { return(otherRecipientInfo); } return(new OtherRecipientInfo(Asn1Sequence.GetInstance(obj))); }
/** * return a OtherRecipientInfo object from the given object. * * @param obj the object we want converted. * @exception ArgumentException if the object cannot be converted. */ public static OtherRecipientInfo GetInstance( object obj) { if (obj == null) { return(null); } OtherRecipientInfo existing = obj as OtherRecipientInfo; if (existing != null) { return(existing); } return(new OtherRecipientInfo(Asn1Sequence.GetInstance(obj))); }
/** * return a OtherRecipientInfo object from the given object. * * @param obj the object we want converted. * @exception ArgumentException if the object cannot be converted. */ public static OtherRecipientInfo GetInstance( object obj) { if (obj == null) { return(null); } OtherRecipientInfo existing = obj as OtherRecipientInfo; if (existing != null) { return(existing); } // Disable warning since using GetInstance would result in an infinite loop #pragma warning disable 618 return(new OtherRecipientInfo(Asn1Sequence.GetInstance(obj))); #pragma warning restore 618 }
public RecipientInfo( OtherRecipientInfo info) { this.info = new DerTaggedObject(false, 4, info); }
public RecipientInfo( OtherRecipientInfo info) { this.info = new DerTaggedObject(false, 4, info); }
public static OtherRecipientInfo GetInstance(Asn1TaggedObject obj, bool explicitly) { return(OtherRecipientInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly))); }