From d5b436d91b8347a4afacb45d43762a8120886f29 Mon Sep 17 00:00:00 2001 From: "ANDY840119-PC\\andy840119" Date: Mon, 8 Jan 2018 23:11:20 +0900 Subject: [PATCH] use public List Columns => listColumnStages.SelectMany(x => x.Columns).ToList(); instead --- osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs b/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs index 3775104a06..292b301e29 100644 --- a/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs +++ b/osu.Game.Rulesets.Mania/UI/ManiaPlayfield.cs @@ -44,18 +44,7 @@ namespace osu.Game.Rulesets.Mania.UI } } - public List Columns - { - get - { - var list = new List(); - foreach (var stage in listColumnStages) - { - list.AddRange(stage.Columns); - } - return list; - } - } + public List Columns => listColumnStages.SelectMany(x => x.Columns).ToList(); public ManiaPlayfield(List stages) : base(Axes.Y)