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