C#MVC3プロジェクトがあり、HTML.CheckBoxForの実装に問題があります。以下のエラーが発生します
Cannot implicitly convert type 'string' to 'bool'
コードは次のとおりです。
@{
List<Domain.LookupCostReductions> costReductions = ViewBag.CostReductions;
foreach (Domain.LookupCostReductions cr in costReductions)
{
@: <td style="border:0 ;vertical-align: top; ">
@Html.CheckBoxFor(x => x.CostReduction, cr.Description)
@cr.Description
@:</td>
}
}
何か案は?