title: Migrating from .NET Core 3.1 to .NET 5 produce compile-time error
body: <p>I have <code>.netcore 3.1</code> application and I want to update it to <code>.net 5.0</code></p>
  <p>I have the following code</p>
  <pre><code>public static IAppSettings ConfigureAppSettings(this IServiceCollection services, IConfiguration configuration)
  {
      void ConfigureSection&lt;Interface, Implementation&gt;(string sectionName)
          where Implementation : Interface, new() where Interface : class
      {
          Implementation configSection = new Implementation();
          configuration.GetSection(sectionName).Bind(configSection);
          services.AddSingleton&lt;Interface&gt;(configSection);
      }
  }
  </code></pre>
  <p>it was working previously, but after updating to .net5 I start seeing this compile-time error</p>
  <blockquote>
  <p>CS1061 'IConfigurationSection' does not contain a definition for 'Bind' and no accessible extension method 'Bind' accepting a first argument of type 'IConfigurationSection' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  <ol>
  <li>Obviously, the <code>Bind</code> method has been removed and the API is no more compatible<br/></li>
  <li>There is no mention for the solution of this problem in the <a href="https://docs.microsoft.com/en-us/dotnet/core/compatibility/3.1-5.0" rel="noreferrer">offical documentation for the migration</a></li>
  </ol>
  <p><strong>My question: What is the alternative to the <code>Bind</code> method?</strong></p>