❔ assign a local string function to a string variable

string parameters = ";mediaType = " + mediaTypeCombo +";" +  string res() { if (mediaTypeCombo.Text == "mp3") { return ""; } else return mediaTypeCombo.Text;  };

Is something like this possible?
Was this page helpful?