Comment utiliser EditorFor à l'intérieur d'un foreach

J'ai un modèle:

public class MyListModel
{
    public int ID {get;set;}
    public List<User> Users{get;set;}
}

Comment puis-je utiliser le Html.EditorFor méthode à l'intérieur d'un foreach?

@model MyListModel
<table>
  <tr>
    <th></th>
  </tr>
  @foreach (var item in Model.Users) {
     <tr>
       <td>
          @Html.EditorFor(item.Enabled)
       </td>
     </tr>
  }
</table>
InformationsquelleAutor Jeremy | 2009-12-31