title: CS0428 C# Cannot convert method group to non-delegate type 'object'. Did you intend to invoke the method?
body: <p>Im getting this compiler error in Blazor (&quot;CS0428 C# Cannot convert method group to non-delegate type 'object'. Did you intend to invoke the method?&quot;) and I seriously do not know how to fix it or which route to take. the error happens on both onchange events of the drop-down lists. please help!</p>
  <pre><code>&lt;select class=&quot;form-control&quot; onchange=&quot;**@ReportingYearClicked**&quot; style=&quot;width: 95px&quot;&gt;
     &lt;option value=&quot;&quot;&gt;-- Select Reporting Year --&lt;/option&gt;
      @foreach (var year in @yearlist)
      {
        &lt;option value=&quot;@year&quot;&gt;@year&lt;/option&gt;
      }
     &lt;/select&gt;
   
  &lt;select class=&quot;form-control&quot; onchange=&quot;**@ClientClicked**&quot; style=&quot;width: 600px&quot;&gt;
     &lt;option value=&quot;&quot;&gt;-- Select Client --&lt;/option&gt;
     @if (ReportingYear == &quot;ALL&quot;)
     {
      @if (client != null)
      {
       @foreach (var client in @client)
       {
        &lt;option value=&quot;@client.ClientUno&quot;&gt;@client.ClientUno &amp;nbsp; @client.ClientName&lt;/option&gt;
       }
      }
     }
     else
     {
      @if (clientListDto != null)
      {
       @foreach (var client in @clientListDto)
       {
        &lt;option value=&quot;@client.ClientUno&quot;&gt;@client.ClientUno &amp;nbsp; @client.ClientName&lt;/option&gt;
       }
      }
     }
  &lt;/select&gt;
  
  @Code
  {
  protected override async Task OnInitializedAsync()
  {
  DateTime now = DateTime.Today;
      currentyear = now.ToString(&quot;yyyy&quot;);
      YearList(currentyear);
      client = await Http.GetJsonAsync&lt;List&lt;ClientDto&gt;&gt;(&quot;http://XXXXXXX/api/clients&quot;);
    }
  
    protected async void ReportingYearClicked(ChangeEventArgs clientEvent)
    {
      client.Clear();
      clientListDto.Clear();
      clientListDto = await 
        Http.GetJsonAsync&lt;List&lt;ClientListDto&gt;&gt;&quot;api/clientListReportingYear=&quot;+                                                                                       
                                                                              ReportingYear);
          
  this.StateHasChanged();
    }
  
      void ClientClicked(ChangeEventArgs clientEvent)
      {
          ReportingYear = clientEvent.Value.ToString();
          this.StateHasChanged();
      }
  }
  </code></pre>