How can I get the dictionary value by key in a function
my function code is this (and the command I am trying but not working):
static void XML_Array(Dictionary<string, string> Data_Array) { String xmlfile = Data_Array.TryGetValue("XML_File", out value); }
my button code is
private void button2_Click(object sender, EventArgs e) { Dictionary<string, string> Data_Array = new Dictionary<string, string>(); Data_Array.Add("XML_File", "Settings.xml"); XML_Array(Data_Array); }
I want something like this:
on the XML_Array function, which will be
string xmlfile = Settings.xml
dictionary c # key
Matei Zoc Aug 29 2018-12-12T00: 00Z
source share