title: Blazor Wasm - cannot convert from 'method group' to 'EventCallback'
body: <p>I have a simple Blazor Server app that works ok.</p>
  <p>I'm trying to create an equivalent app using Blazor WebAssembly with dotnet 5.</p>
  <p>In the working app, I have a razor component that enables the user to upload files using the <a href="https://www.nuget.org/packages/BlazorFileUploader/" rel="nofollow noreferrer">BlazorFileUploader</a> nuget package</p>
  <p>Markup:</p>
  <pre><code>&lt;InputFile multiple OnChange=&quot;HandleFileSelected&quot;/&gt;
  </code></pre>
  <p>Code behind:</p>
  <pre><code>public async Task HandleFileSelected(IFileListEntry[] files)
          {
              if (!ValidateFiles(files, out _errorMsg))
              {
                  return;
              }
  etc...
  </code></pre>
  <p>When I try to compile the wasm app, I get the following error</p>
  <p><em>CS1503 Argument 2: cannot convert from 'method group' to 'EventCallback'</em></p>
  <p><a href="https://i.stack.imgur.com/nPAfU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nPAfU.png" alt="error image" /></a></p>
  <p>Any ideas what I'm doing wrong?</p>