Use Invoke Method to create a config file from excel

I am trying to read my excel file
and use invoke method to save it in a dictionary
for further use .
This is the Excel file bellow:
Format Like:
Name, Value
User, xxx
Password, xxx

  1. I use read range to read the excel and output it into a data table “DtConfig”
  2. Created a Dictionary(string,String)
  3. Used a For each row to try to get the data in the Dictionary but stuck with the how

    Can anyone help me with the coding