void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            Orders orderList = new Orders();
            Order searchOrder = new Order(1, 1, "kojaedoo", 100, "kojaedoo", DateTime.Now);

           List<Order> list = orderList.ToList();

           var result = list.Where(delegate(Order a)
            {
                if (a.Name.Contains(searchOrder.Name))
                {
                    return true;
                }
                else
                {
                    return false;
                }

            });

        }

 

.

+ Recent posts