I create my Tuple and add it to the combo box:
comboBox1.Items.Add(new Tuple<string, string>(service, method));
Now I want to pass the element as a tuple, but this does not work:
Tuple<string, string> selectedTuple =
Tuple<string, string>(comboBox1.SelectedItem);
How can i do this?
source
share