You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
I am passing a collection of tuple to my view page, and using it in a foreach.
// In Controller
model.Processes= new List<(Enum process, string label)> { (Invoice.Present, "Find") }
// In View
foreach (var service in Model.Processes) {
<button-route-process route=service.process>@service.label</button-route-process>
}
// button-route-process is a TagHelper
Intellisense recognizes the element names for autocomplete, but at run time I get:
'ValueTuple<Enum, string>' does not contain a definition for 'label' and no extension method 'label' accepting...'
This may be related to Declare
List<Tuple>
in View Error #5709Issue
I am passing a collection of tuple to my view page, and using it in a foreach.
Intellisense recognizes the element names for autocomplete, but at run time I get:
'ValueTuple<Enum, string>' does not contain a definition for 'label' and no extension method 'label' accepting...'
If I use Item,
it works fine.
If I try define the tuple signature I get a different error at runtime.
The names are a little different in this image.

The text was updated successfully, but these errors were encountered: