How to use ToLookUp Linq query? example

Hi everyone can someone tell me how to use ToLookUp in one linq query, if someone has an example i undertand much better. I try someone like this

Dt.AsEnumerable().TolookUp(Function(x) Convert.ToString(x(“PARTIDA”)) = “Company A”)

but not work i review the documentation in microsoft but i would like to know to understand how to use it

welcome to the forum

find some starter help here:
Match_1Col_ResultKeyColMatchVal.xaml (8.6 KB)

FindMatch_LookUpDT-Activity.xaml (7.3 KB)

Another technique is create a dictionary using it later for the lookup

1 Like