I have a list of objects and I have an array of keywords. I need to check if all the elements of the array are present inside the list of objects. The user enters the data to be searched like this
My code looks like:
//i check if the data is present in the list Dim keys = str.Split("+") dim linqMeddata = From m In medicineDataList Where m.MedicineData.Contains(key(0)) AndAlso m.MedicineData.Contains(key(1))) Order By m.MedicineName Ascending Select m
I need to know how I can check if all the elements of the array are present in the list. Currently I am hard coding the keywords; I need a dynamic solution.