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

@ -83,9 +83,7 @@ namespace osu.Game.Beatmaps.Formats
{
storyboardSprite = null;
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)