using System.Collections.Generic;
public static void Main()
List<string> expectedCategories = new List<string>(){"EXWORK", "CENTAGES", "PREMIUM"};
List<Product> products = new List<Product>()
new Product("EXWORK", "ERECTION"),
new Product("CENTAGES", "ERECTION"),
new Product("PREMIUM", "SUPPLY")
.Where(x => x.CATAGORY == "ERECTION" && expectedCategories.Contains(x.PARTICULARS))
.Select(x => x.PARTICULARS);
Console.WriteLine(string.Join(", ", result));
public string PARTICULARS{ get; set; }
public string CATAGORY{ get; set; }
public Product(string particulars, string category)
this.PARTICULARS = particulars;
this.CATAGORY = category;