title: Cannot assign method group to an implicitly-typed local variable
body: <p>I have this error </p>
  
  <blockquote>
    <p>"Cannot assign method group to an implicitly-typed local variable"</p>
  </blockquote>
  
  <p>in this code</p>
  
  <pre><code>private async void Button_Click_2(object sender, RoutedEventArgs e)
  {
      var frenchvoice = InstalledVoices.All.Where(voice =&gt; voice.Language.Equals("fr-FR") &amp; voice.Gender == VoiceGender.Female).FirstOrDefault; // in this line
      sp.SetVoice(frenchvoice);
      await sp.SpeakTextAsync(mytxt);
  }
  </code></pre>