How to fix it? This is certainly not a mistake, but just a warning.
Here is the code itself:
if (SelectTypeConnectComboBox.SelectedItem == "DSL / Cable / LAN.") { string[] allText = File.ReadAllLines("Settings.cfg"); allText[48] = "NETWORK_SPEEDSETTINGS : 2"; File.WriteAllLines("Settings.cfg", allText); } Complete error:
Perhaps an unintended comparison of links; for comparing values, cast the left part to the type "string".
PS Warning here:
SelectTypeConnectComboBox.SelectedItem == "DSL / Cable / LAN."
SelectTypeConnectComboBox.SelectedItem? - Dmitry Polyanin