publicstaticclassFormat{publicstaticstringLikeText(string[]names)=>names.Lengthswitch{0=>"no one likes this",1=>$"{names[0]} likes this",2=>$"{names[0]} and {names[1}} like this",3=>$"{names[0]}, {names[1]}, and {names[2]} like this",_=>$"{names[0]}, {names[1]}, and {names.Length-2} others like this",};}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
C# switch expressions to the rescue!