Can someone explain the format for ASP.NET MVC controllers? They look like this:
public class ProductsController : Controller
{
//
// GET: /Products/Edit/34
public ActionResult Edit(int id)
{
// ...
}
}
Why don’t they follow the standard C#-notation with three slashes and XML markup? And why the empty line between the comment and the method?
I my oppinion it should have looked somewhat like this:
public class ProductsController : Controller
{
/// <remarks>
/// GET: /Products/Edit/34
/// </remarks>
public ActionResult Edit(int id)
{
// ...
}
}
I’m only guessing, but the format you specified is not for comments, but for inline documentation. You do have the ability to modify the T4 templates to get the coding style you prefer.