예제 #1
0
        static void Main(string[] args)
        {
            Customer customer = new Customer(50314, "MyCustomer");
            var      holder   = new ValueHolder <IEnumerable <Order> >(OrdersDatabase.GetOrders);

            customer.SetValueHolder(holder);

            foreach (Order order in customer.GetOrders())
            {
                // Do Something With Orders
            }
        }
예제 #2
0
 public void SetValueHolder(ValueHolder <IEnumerable <Order> > orders)
 {
     Orders = orders;
 }