有人可以解釋ASP.NET MVC控制器的格式嗎?他們看起來像這樣:ASP.NET MVC控制器的註釋默認格式
public class ProductsController : Controller
{
//
// GET: /Products/Edit/34
public ActionResult Edit(int id)
{
// ...
}
}
他們爲什麼不遵循三條斜線和XML標記標準的C#-notation?爲什麼評論和方法之間的空行?
我我oppinion它應該看起來有些像這樣:
public class ProductsController : Controller
{
/// <remarks>
/// GET: /Products/Edit/34
/// </remarks>
public ActionResult Edit(int id)
{
// ...
}
}