mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Reuse value
to save enum name
Co-authored-by: Salman Ahmed <frenzibyte@gmail.com>
This commit is contained in:
@ -123,8 +123,8 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
if (Enum.TryParse(value, true, out result)) return true;
|
||||
|
||||
string status = Enum.GetNames(typeof(TEnum)).FirstOrDefault(name => name.StartsWith(value, true, CultureInfo.InvariantCulture));
|
||||
return Enum.TryParse(status, true, out result);
|
||||
value = Enum.GetNames(typeof(TEnum)).FirstOrDefault(name => name.StartsWith(value, true, CultureInfo.InvariantCulture));
|
||||
return Enum.TryParse(value, true, out result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user