From 51ec5564a0ede45b17e61b7f808cbeca0abaeaa3 Mon Sep 17 00:00:00 2001 From: ​ Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: clone customer --- clone_customer/CloneCustomer/CustomerList.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 clone_customer/CloneCustomer/CustomerList.cs (limited to 'clone_customer/CloneCustomer/CustomerList.cs') diff --git a/clone_customer/CloneCustomer/CustomerList.cs b/clone_customer/CloneCustomer/CustomerList.cs new file mode 100644 index 0000000..58e106b --- /dev/null +++ b/clone_customer/CloneCustomer/CustomerList.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; + +namespace CloneCustomer +{ + public class CustomerList + { + private List customers = new List(); + + public int Count => customers.Count; + + public Customer this[int i] => customers[i]; + + public void Add(Customer customer) => customers.Add(customer); + } +} -- cgit 1.4.1