compiler does not like having ReadOnlySpan<char> in this foreach declaration, use var and AsSpan() instead

This commit is contained in:
Scott Karbon 2023-08-12 20:27:12 -04:00
parent 1ca7e9968e
commit 6c325d0831
1 changed files with 2 additions and 2 deletions

View File

@ -463,10 +463,10 @@ namespace Emby.Server.Implementations.LiveTv.Listings
}
StringBuilder str = new StringBuilder("[", 1 + (programIds.Count * 13));
foreach (ReadOnlySpan<char> i in programIds)
foreach (var i in programIds)
{
str.Append('"')
.Append(i.Slice(0, 10))
.Append(i.AsSpan().Slice(0, 10))
.Append("\",");
}