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