AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Demo 2nd non-collection example for virtualization with an item provider delegate

Open guardrex opened this issue 3 years ago • 0 comments

I think GetEmployeesAsync for the items provider delegate example returns a collection. DataRow is a potential 2nd example for a use case that isn't a collection. Whether or not the example is shown, let's extend the current guidance to indicate that Virtualize expects a generic ICollection<T>; so if the items aren't a collection, the delegate approach is the right way to go. Example and discussion is at https://github.com/dotnet/aspnetcore/issues/37875#issuecomment-970692620.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

guardrex avatar Jul 18 '22 19:07 guardrex