Can someone please help me optimize this if-statement?

There has to be a way to just use a foreach (var randomNationality in randomNationalities) and then iterate through randomNationality-Values and the corresponding randomLastNames country-suffixes. This would be especially useful, when I add more nationalities and don’t have to copy every if-block for each one.

Link to Code

submitted by /u/BluePear0
[link] [comments]

Leave a Reply