mirror of
https://github.com/ppy/osu
synced 2024-12-29 10:22:43 +00:00
Avoid some further enumerator allocations
This commit is contained in:
parent
6e1b4152c0
commit
80abf6aab3
@ -2,6 +2,8 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Extensions.ListExtensions;
|
||||
using osu.Framework.Lists;
|
||||
|
||||
namespace osu.Game.Screens.Select.Carousel
|
||||
{
|
||||
@ -12,7 +14,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
{
|
||||
public override DrawableCarouselItem? CreateDrawableRepresentation() => null;
|
||||
|
||||
public IReadOnlyList<CarouselItem> Items => items;
|
||||
public SlimReadOnlyListWrapper<CarouselItem> Items => items.AsSlimReadOnly();
|
||||
|
||||
public int TotalItemsNotFiltered { get; private set; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user