I have code that I am using here:
var currentItem = ListOfPhrases
.FirstOrDefault(x => x.Name == ((LANG)SelectedConfig).Phrase());
if (currentItem != null) currentItem.Selected = true;
The code is working fine but I am wondering if anyone with a very good knowledge of C# can think of a way that this code could be rewritten into just one line. Maybe it’s impossible but I think it’s worth me asking. Hoping for advice. Thanks