title: View generating error message: String was not recognized as a valid Boolean
body: <p>Within an admin page I originally was generating several checkboxes within a view as per below:</p>
  
  <p>Model:</p>
  
  <pre><code>public class Foo
  {
      public const string Bar = "SomeString";
  }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>@Html.CheckBox(Foo.Bar)
  @Html.Label(Foo.Bar)
  </code></pre>
  
  <p>However, I wanted to change the display name of several of the checkboxes, so I created a view model (to later add a display name attribute):</p>
  
  <pre><code>public class FooViewModel
  {
       public string Bar
       {
           get { return Foo.Bar; }
       }
  }
  </code></pre>
  
  <p>And modified the view:</p>
  
  <pre><code>@Html.CheckBox(Model.Bar)
  @Html.LabelFor(m =&gt; m.Bar)
  </code></pre>
  
  <p>However, the view is now generating an error when rendering the checkbox: </p>
  
  <blockquote>
    <p>String was not recognized as a valid Boolean</p>
  </blockquote>
  
  <p>Note, that if I change the property name within the view model to anything other than "Bar"  the view is rendered correct. EG:</p>
  
  <pre><code>public class FooViewModel
  {
       public string WTF
       {
           get { return Foo.Bar; }
       }
  }
  
  @Html.CheckBox(Model.WTF)
  @Html.LabelFor(m =&gt; m.WTF)
  </code></pre>
  
  <p>Can anybody explain to me why this error is occurring if my viewmodel property is named "Bar"?</p>
  
  <p><strong>Edit</strong>:
  I have updated my question slightly seeing as how, i'm generating some confusion. The view is used as a search form and the checkboxes are simply used for selecting "search critera". </p>
  
  <p>I'm generating the checkbox in this fashion so the name / id of the checkbox is related to corresponding business logic within the controller.</p>
  
  <p>I'm aware that code will not compile if property name / field name within the same class are identical. That is not the issue, as i'm simply initializing a property from constant within a different namespace.</p>