Skip to content

Commit

Permalink
remove ICollection detection from EnumerableHelpers
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis committed Mar 4, 2021
1 parent 8f1d63d commit 677a774
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ internal static bool TryGetCount<T>(IEnumerable<T> source, out int count)
return true;
}

if (source is ICollection ic)
{
count = ic.Count;
return true;
}

count = 0;
return false;
}
Expand Down

0 comments on commit 677a774

Please sign in to comment.