public static GetInstance ( |
||
obj | ||
explicitly | bool | |
return |
public static DerVisibleString GetInstance(object obj) { if (obj == null || obj is DerVisibleString) { return((DerVisibleString)obj); } if (obj is Asn1OctetString) { return(new DerVisibleString(((Asn1OctetString)obj).GetOctets())); } if (obj is Asn1TaggedObject) { return(DerVisibleString.GetInstance(((Asn1TaggedObject)obj).GetObject())); } throw new ArgumentException("illegal object in GetInstance: " + obj.GetType().Name); }
public static DerVisibleString GetInstance(Asn1TaggedObject obj, bool explicitly) { return(DerVisibleString.GetInstance(obj.GetObject())); }