Ciao a tutti,
ho un problema, passo una stringa a questa funzione , ed in base alla stringa devo far tornare un valore.
Per quale motivo non mi esegue la condizione IF?codice:private string colorSyntax (string getString) { Color rColor = Color.Yellow; string s = getString; if (s == "ciao") { rColor = Color.Red; } return (getString = rColor.ToArgb().ToString()); }
cosa sto sbagliando?