title: delegate and the await task
body: <p>creating method delegates and I ran into one problem:</p>
  <pre><code>D_AmortizationCalsAsync d_AmortizationCalsAsync = AmortizationCalsAsync; // here i have error
  
  public delegate Func&lt;Task&lt;decimal&gt;&gt; D_AmortizationCalsAsync(int amortization, int installmentNumber);
  
  public async Task&lt;decimal&gt; AmortizationCalsAsync(int amortization, int installmentNumber)
      {
        (...)
      }
  
  </code></pre>
  <p>Tak AmortizationCalsAsync (int, int) has a wrong return type</p>
  <p><a href="https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0407?f1url=%3FappId%3Droslyn%26k%3Dk(CS0407)" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0407?f1url=%3FappId%3Droslyn%26k%3Dk(CS0407)</a></p>