We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eea5c78 commit f3d3e4dCopy full SHA for f3d3e4d
src/Polyfill/Polyfill_IEnumerable.cs
@@ -55,9 +55,9 @@ static partial class Polyfill
55
[Link("https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.trygetnonenumeratedcount")]
56
public static bool TryGetNonEnumeratedCount<TSource>(this IEnumerable<TSource> target, out int count)
57
{
58
- if (target is ICollection<TSource> collectionoft)
+ if (target is ICollection<TSource> genericCollection)
59
60
- count = collectionoft.Count;
+ count = genericCollection.Count;
61
return true;
62
}
63
0 commit comments