I am working with 2 object types array in C#, One of my array is populated from MS Access and other in being filled from MySql.
object[] Product = [{123, "Tea"},{234, "Coffee"},{345, "Drinks"}]; // from MySql
object[] ProductDetails = [{123, "T", 23.00},{234, "C", 25.02},{345, "D", 11.88}]; // from MS Access
I need to loop through its all ProductDetails to match with its ID in Product array , where ID matches it replace the name from product array to productsdetails array,
OR any other approach do it efficiently in c# code. Records may be in thousands.
Dictionary?DictionaryusingList<T>, then you can use.Find()to test if your condition is true