title: Blazor: Razor component @bind-
body: <p>.NET 5 / Blazor / VS 2019</p>
  <p>How do you handle @bind- which do nothing?</p>
  <p>Example:</p>
  <pre><code>&lt;Switch TValue=&quot;bool&quot; @bind-Check=&quot;@IsFoo&quot;&gt;&lt;/Switch&gt;
  </code></pre>
  <p>or</p>
  <p>&lt;Switch TValue=&quot;bool&quot; @bind-xxddfgdg=&quot;@IsFoo&quot;&gt;</p>
  <p>IsFoo is always False</p>
  <p>No compiler error or warning, runtime result IsFoo = <strong>False</strong></p>
  <p>With Blazor <strong>Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation</strong> doesn't work. Any other ideas?</p>