There is some string value. Can I use Linq query to find out if this value is in the ComboBox?
It is possible through the Contains() method:
Contains()
string s = "1"; comboBox1.Items.Add("1"); comboBox1.Items.Add("2"); comboBox1.Items.Add("3"); bool result = comboBox1.Items.Contains(s);
Linq
Source: https://ru.stackoverflow.com/questions/729825/More articles:Service settings through a graphical interfaceHow to get 8 bit binary code from each characterCannot separate quotes from parameter in cmdPHP: Can not throw an exception in the error handlerHow to change the physics of folding / opening AppBarLayout?The full contents of a datagrid cell when hoveringPassing values to PasswordBox from ViewModel C # WPF MVVMHow to properly manage dependencies in the deb package that CPack is going to?Navigate pages without reloading the entire page. AJAXWrong field serialization with GsonAll Articles