代码改变世界

关于编码规范

2014-08-15 09:37  蜡笔小旧  阅读(182)  评论(0编辑  收藏  举报
 
public static MvcForm BeginRouteForm(this AjaxHelper ajaxHelper, string routeName, RouteValueDictionary routeValues, AjaxOptions ajaxOptions)
        {
            return BeginRouteForm(ajaxHelper, routeName, routeValues, ajaxOptions, null /* htmlAttributes */);
        }

System.Web.Mvc中AjaxExtensions.cs

注释是否可替换成Named Arguments

 

public static MvcForm BeginRouteForm(this AjaxHelper ajaxHelper, string routeName, RouteValueDictionary routeValues, AjaxOptions ajaxOptions)
        {
            return BeginRouteForm(ajaxHelper, routeName, routeValues, ajaxOptions, htmlAttributes: null );
        }