mirror of
https://github.com/ppy/osu.git
synced 2026-05-24 12:10:15 +08:00
Replace .OfType with .Cast
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user