I want to create a dictionary from c# specflow table . I need this as the values in the label and value will change for every feature file.In my current feature file, I have 2 columns.
And I submit with following
| Label | Value |
| Namelabel | texttoenter123 |
| Email |test@test.com |
Corresponding Step.Tried to use linq.
[When(@"I submit with following ")]
public void WhenISubmitWithFollowing(Table table)
{
//Should be something like this , which convert the table todictionary object
var x = table.Rows.ToDictionary(k=>k.Keys,k=>k.Values);
}``
Currently I am getting null in this.Please help.