1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 08:12:56 +08:00

Replace .OfType with .Cast

This commit is contained in:
smoogipoo 2018-01-04 15:55:35 +09:00
parent 227cae3ff8
commit 697efba5e2

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);
}