I have the following problem, I want to make a array in C # where the key is a string and then separate the key from the value with a foreach in php as the array the following way Eg:
$array['key_name'] = "value1";
I searched a bit on the Internet and found the following:
var datos = new Dictionary<string, string>();
datos ["fondo"] = "LA9018-58-896.png";
datos ["codigo"] = "LA9018";
and to extract the value it would only be like this:
string aValue = datos["fondo"];
What I get
LA9018-58-896.png
The problem I have is that I only bring a single key and what I want is to do it dynamically with a foreach . Saving in one variable the key and in another the value .