public static TargetInformation GetInstance(
object obj)
{
if (obj is TargetInformation)
{
return (TargetInformation) obj;
}
if (obj is Asn1Sequence)
{
return new TargetInformation((Asn1Sequence) obj);
}
throw new ArgumentException("unknown object in factory: " + obj.GetType().Name, "obj");
}