Use 'out var'.

This commit is contained in:
Huo Yaoyuan
2019-11-12 18:22:35 +08:00
parent 0d81b96c5f
commit 31cc0d13da
9 changed files with 9 additions and 22 deletions

View File

@ -293,9 +293,7 @@ namespace osu.Game.Beatmaps.Formats
{
string[] split = line.Split(',');
EventType type;
if (!Enum.TryParse(split[0], out type))
if (!Enum.TryParse(split[0], out EventType type))
throw new InvalidDataException($@"Unknown event type: {split[0]}");
switch (type)