1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 05:39:57 +08:00

Replace .OfType with .Cast

This commit is contained in:
smoogipoo
2018-01-04 15:55:35 +09:00
Unverified
parent 227cae3ff8
commit 697efba5e2
+1 -1
View File
@@ -96,7 +96,7 @@ namespace osu.Game.Rulesets.UI
public class HitObjectContainer : CompositeDrawable
{
public virtual IEnumerable<DrawableHitObject> Objects => InternalChildren.OfType<DrawableHitObject>();
public virtual IEnumerable<DrawableHitObject> Objects => InternalChildren.Cast<DrawableHitObject>();
public virtual void Add(DrawableHitObject hitObject) => AddInternal(hitObject);
public virtual bool Remove(DrawableHitObject hitObject) => RemoveInternal(hitObject);
}