I have a Dictionary<string, string>[] array, where each element is a Dictionary<string, string> with the same Keys and different Values.
How to get the index of the object for a given Key and Value?
For example, if the dictionary array has two elements as:
[0]: {'Key1', 'ValueA}
{'Key2', 'ValueB}
[1]: {'Key1', 'ValueC}
{'Key2', 'ValueD}
How to get the index where 'Key2' = 'ValueD'? So, Index result = 1.