public class clsCustomer { private string strcustomername = ""; private string strcustomercode = ""; private string strcity = ""; public string CustomerName { set { strcustomername=value; } get { return strcustomername; } } public string CustomerCode { set { strcustomercode=value; } get { return strcustomercode; } } public string City { set { strcity=value; } get { return strcity; } } public clsOrder[] Orders = null; } class clsOrder { private string strProductname; public string ProductName { set { strProductname=value; } get { return strProductname; } } } class clsLINQ { clsCustomer[] objcustomer=new clsCustomer[] { new clsCustomer(CustomerName="Khadak",CustomerCode="001",City="Ludhiana", Orders=new clsOrder[] (new clsOrder(ProductName="Shirt"), new clsOrder(ProductName="Socks"))), new clsCustomer(CustomerName="DEV",CustomerCode="002",City="Ludhiana", Orders=new clsOrder[] (new clsOrder(ProductName="Shirt"))), new clsCustomer(CustomerName="AWE",CustomerCode="003",City="Ludhiana", Orders=new clsOrder[] (new clsOrder(ProductName="Socks"))) }};
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)