Skip to content

Commit f3d3e4d

Browse files
committed
Update Polyfill_IEnumerable.cs
1 parent eea5c78 commit f3d3e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Polyfill/Polyfill_IEnumerable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ static partial class Polyfill
5555
[Link("https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.trygetnonenumeratedcount")]
5656
public static bool TryGetNonEnumeratedCount<TSource>(this IEnumerable<TSource> target, out int count)
5757
{
58-
if (target is ICollection<TSource> collectionoft)
58+
if (target is ICollection<TSource> genericCollection)
5959
{
60-
count = collectionoft.Count;
60+
count = genericCollection.Count;
6161
return true;
6262
}
6363

0 commit comments

Comments
 (0)