In C # 7, you can have tuple names:
var foo = (Name: "Joe", Age: 42);
If you pass this to the MVC model using:
return View(foo);
Then what syntax should be used in the cshtml file to declare the model? Although this does not work, something like ...
@model (string Name, int Age);
user2737646
source share