List() public method

public List ( StripeCustomerListOptions listOptions = null, Stripe.StripeRequestOptions requestOptions = null ) : IEnumerable
listOptions StripeCustomerListOptions
requestOptions Stripe.StripeRequestOptions
return IEnumerable
 public void CleanCustomers()
 {
     try
     {
         StripeCustomerService stripeService = new StripeCustomerService("sk_0JDG46M1ff0yZRqZjz9CNKtW2Aj14");
         var options = new StripeCustomerListOptions();
         options.Limit = 10000;
         var customers = stripeService.List(options);
         foreach (var customer in customers)
         {
             stripeService.Delete(customer.Id);
         }
     }
     catch
     {
     }
 }
		//static bool IsExistingCustomer(StripeCustomer customer)
		//{
		//    var customerListService = new StripeCustomerService();
		//    var customerList = customerListService.List();

		//    return customerList.Any(currentCustomer => customer.Email == currentCustomer.Email);
		//}

		static StripeCustomer GetCustomer(String email)
		{
			var customerListService = new StripeCustomerService();
			var customerList = customerListService.List();
			return customerList.FirstOrDefault(currentCustomer => email == currentCustomer.Email);
		}
		static bool IsExistingCustomer(String email)
		{
			var customerListService = new StripeCustomerService();
			var customerList = customerListService.List();

			return customerList.Any(currentCustomer => email == currentCustomer.Email);
		}