-
After ASP0019 is reported for the call to
Add
, apply the "Use indexer" code fix. -
Verify that the indexer in the fixed code is on a separate line:
Actual
context.Response.Headers
["Header"] = "Value";
Expected
context.Response.Headers["Header"] = "Value";