From 23283d84e202ebaaaad37fc17980dbec74c3c0c7 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Sun, 17 Nov 2024 10:35:12 -0500 Subject: [PATCH] Explain field used by example (#34151) --- aspnetcore/blazor/components/virtualization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/blazor/components/virtualization.md b/aspnetcore/blazor/components/virtualization.md index 0985702a6a3c..033f7dddea4a 100644 --- a/aspnetcore/blazor/components/virtualization.md +++ b/aspnetcore/blazor/components/virtualization.md @@ -97,7 +97,7 @@ The items provider receives an component can only accept **one item source** from its parameters, so don't attempt to simultaneously use an items provider and assign a collection to `Items`. If both are assigned, an is thrown when the component's parameters are set at runtime. -The following example loads employees from an `EmployeeService` (not shown): +The following example loads employees from an `EmployeeService` (not shown). The `totalEmployees` field would typically be assigned by calling a method on the same service (for example, `EmployeesService.GetEmployeesCountAsync`) elsewhere, such as during component initialization. ```csharp private async ValueTask> LoadEmployees(