title: How to get resource strings in strongly typed way in asp.net core?
body: <p>In the following program, in order to get resource strings i am using _localizer["About Title"] where "About Title" is a magic string. How to avoid using strings like this? Is there any strongly typed way? </p>
  
  <pre><code>using Microsoft.AspNetCore.Mvc;
  using Microsoft.Extensions.Localization;
  
  namespace Localization.StarterWeb.Controllers
  {
      [Route("api/[controller]")]
      public class AboutController : Controller
      {
          private readonly IStringLocalizer&lt;AboutController&gt; _localizer;
  
          public AboutController(IStringLocalizer&lt;AboutController&gt; localizer)
          {
              _localizer = localizer;
          }
  
          [HttpGet]
          public string Get()
          {
              return _localizer["About Title"];
          }
      }
  }
  </code></pre>