CheckMadeOrga / CheckMade

B2B Workflow ChatBot for LiveEvents
Other
0 stars 0 forks source link

Replace .Last() with .First() where applicable #214

Open dgor82 opened 2 months ago

dgor82 commented 2 months ago

Go through all my usages of .Last() and see if I can't replace it with First (which is more efficient) and also the convention (on the condition of course that in terms of the property of interest, all items in the underlying collection are the same) - see example: var currentRole = interactiveHistory.First().OriginatorRole.GetValueOrThrow(); in NewIssueSubmissionConfirmation