mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Trim yet another array copy
This commit is contained in:
@ -153,12 +153,8 @@ namespace osu.Game.Configuration
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ICollection<(SettingSourceAttribute, PropertyInfo)> GetOrderedSettingsSourceProperties(this object obj)
|
public static ICollection<(SettingSourceAttribute, PropertyInfo)> GetOrderedSettingsSourceProperties(this object obj)
|
||||||
{
|
=> obj.GetSettingsSourceProperties()
|
||||||
var original = obj.GetSettingsSourceProperties().ToArray();
|
.OrderBy(attr => attr.Item1)
|
||||||
|
.ToArray();
|
||||||
return original
|
|
||||||
.OrderBy(attr => attr.Item1)
|
|
||||||
.ToArray();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user