我创建我的元组并将其添加到组合框中:
comboBox1.Items.Add(new Tuple<string, string>(service, method));
Run Code Online (Sandbox Code Playgroud)
现在我希望将项目作为元组投射,但这不起作用:
Tuple<string, string> selectedTuple =
Tuple<string, string>(comboBox1.SelectedItem);
Run Code Online (Sandbox Code Playgroud)
我怎么能做到这一点?