static void List (ObjectType type, X509Store store, bool machine, string file, bool verbose) { switch (type) { case ObjectType.Certificate: foreach (X509Certificate x509 in store.Certificates) { DisplayCertificate (x509, machine, verbose); } break; case ObjectType.CRL: // TODO break; default: throw new NotSupportedException (type.ToString ()); } }