Use Linq.Append and Prepend.

This commit is contained in:
Huo Yaoyuan
2018-04-02 12:06:34 +08:00
parent cc70f7182a
commit b842f682eb
9 changed files with 10 additions and 12 deletions

View File

@ -16,7 +16,7 @@ namespace osu.Game.Beatmaps.Formats
public TOutput Decode(StreamReader primaryStream, params StreamReader[] otherStreams)
{
var output = CreateTemplateObject();
foreach (StreamReader stream in new[] { primaryStream }.Concat(otherStreams))
foreach (StreamReader stream in otherStreams.Prepend(primaryStream))
ParseStreamInto(stream, output);
return output;
}