I would use a create a class:
Then create a list of those class:Code:public class Product { public string name{ get; set;} public double price {get; set;} public string product {get; set;} }
Then you have full control. You can search very fast, if you include the system.linq namespace. You can search using:Code:List<Product> productList = new List<Product>();
This should be enough information (maybe too much) to get startedCode:product = productList.First(p => p.name == "TestName");




Reply With Quote