in php, I cna use foreach $key->$value but in c sharp i couldn’t find a similar solution, I have data values and I want to save them to session with their keys will be column names.so I’m tring to copy a datarow to session which will get key names from column names of datarow with a loop.
Share
If it’s a dictionary, you can use: