Use generic Enum methods

This commit is contained in:
Berkan Diler
2022-12-26 20:36:39 +01:00
parent 2470991aaa
commit c7ca4bbba5
20 changed files with 25 additions and 26 deletions

View File

@ -12,7 +12,7 @@ namespace osu.Game.Graphics.UserInterface
{
public OsuEnumDropdown()
{
Items = (T[])Enum.GetValues(typeof(T));
Items = Enum.GetValues<T>();
}
}
}