diff options
author | | 1970-01-01 00:00:00 +0000 |
---|---|---|
committer | | 2025-01-08 04:50:10 +0000 |
commit | 51ec5564a0ede45b17e61b7f808cbeca0abaeaa3 (patch) | |
tree | c070ac97446520422113c48a4bb687fd96ab53e5 /clone_customer/CloneCustomer/CustomerList.cs | |
parent | customer maintenance (diff) | |
download | cs-51ec5564a0ede45b17e61b7f808cbeca0abaeaa3.tar cs-51ec5564a0ede45b17e61b7f808cbeca0abaeaa3.tar.gz cs-51ec5564a0ede45b17e61b7f808cbeca0abaeaa3.tar.bz2 cs-51ec5564a0ede45b17e61b7f808cbeca0abaeaa3.tar.xz cs-51ec5564a0ede45b17e61b7f808cbeca0abaeaa3.zip |
clone customer m
Diffstat (limited to 'clone_customer/CloneCustomer/CustomerList.cs')
-rw-r--r-- | clone_customer/CloneCustomer/CustomerList.cs | 16 |
1 files changed, 16 insertions, 0 deletions
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<Customer> customers = new List<Customer>(); + + public int Count => customers.Count; + + public Customer this[int i] => customers[i]; + + public void Add(Customer customer) => customers.Add(customer); + } +} |