1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:42:54 +08:00

Use OrderByDescending

This commit is contained in:
Dean Herbert 2020-07-31 16:21:47 +09:00
parent 23ab6f8f94
commit 62ba214dad

View File

@ -69,8 +69,8 @@ namespace osu.Game.Rulesets
// Given name is always going to be equally-or-more qualified than the assembly name.
.Where(a => args.Name.Contains(a.GetName().Name, StringComparison.Ordinal))
// Pick the greatest assembly version.
.OrderBy(a => a.GetName().Version)
.LastOrDefault();
.OrderByDescending(a => a.GetName().Version)
.FirstOrDefault();
if (domainAssembly != null)
return domainAssembly;