mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Use OrderByDescending
This commit is contained in:
parent
23ab6f8f94
commit
62ba214dad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user