Answer the question
In order to leave comments, you need to log in
Why in a web application, on a page, 8 is displayed, and not 4?
The code for the Configure method of the Startup class:
public void Configure(IApplicationBuilder app)
{
int x = 2;
app.Run(async (context) =>
{
x = x * 2; // 2 * 2 = 4
await context.Response.WriteAsync($"Result: {x}");
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question