Skip to content

Commit 8054534

Browse files
committed
Change Slices property to ReadOnlySpan<T>
1 parent 0eecc4e commit 8054534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/AsepriteDotNet/Sprite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public sealed class Sprite : IEquatable<Sprite>
2727
/// <summary>
2828
/// Gets a read-only collection of the slices contained within this sprite.
2929
/// </summary>
30-
public IReadOnlyCollection<Slice> Slices => _slices;
30+
public ReadOnlySpan<Slice> Slices => _slices;
3131

3232
internal Sprite(string name, Texture texture, Slice[] slices) =>
3333
(Name, Texture, _slices) = (name, texture, slices);

0 commit comments

Comments
 (0)