本文整理汇总了C#中Hash.ToDictionary方法的典型用法代码示例。如果您正苦于以下问题:C# Hash.ToDictionary方法的具体用法?C# Hash.ToDictionary怎么用?C# Hash.ToDictionary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hash
的用法示例。
在下文中一共展示了Hash.ToDictionary方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TextBox
public string TextBox(string name, object value, Hash htmlAttributes)
{
return _helper.TextBox(name, value, htmlAttributes.ToDictionary());
}
示例2: DropDownList
public string DropDownList(string name, RubyArray selectList, string optionLabel, Hash htmlAttributes)
{
return _helper.DropDownList(name, selectList.ToSelectListItemList(), optionLabel, htmlAttributes.ToDictionary());
}
示例3: ActionLink
public MvcHtmlString ActionLink(string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, Hash routeValues, AjaxOptions ajaxOptions,
Hash htmlAttributes)
{
return _helper.ActionLink(linkText, actionName, controllerName, protocol, hostName, fragment, routeValues.ToRouteDictionary(), ajaxOptions, htmlAttributes.ToDictionary());
}
示例4: ActionLink
public string ActionLink(string linkText, string actionName, string controllerName, Hash routeValues, Hash htmlAttributes)
{
return _helper.ActionLink(linkText, actionName, controllerName, routeValues.ToRouteDictionary(), htmlAttributes.ToDictionary());
}
示例5: TextArea
public string TextArea(string name, string value, int rows, int columns, Hash htmlAttributes)
{
return _helper.TextArea(name, value, rows, columns, htmlAttributes.ToDictionary());
}
示例6: RouteLink
public MvcHtmlString RouteLink(string linkText, string routeName, AjaxOptions ajaxOptions, Hash htmlAttributes)
{
return _helper.RouteLink(linkText, routeName, ajaxOptions, htmlAttributes.ToDictionary());
}
示例7: BeginForm
public MvcForm BeginForm(string actionName, string controllerName, Hash routeValues, FormMethod method, Hash htmlAttributes)
{
return _helper.BeginForm(actionName, controllerName, routeValues.ToRouteDictionary(), method, htmlAttributes.ToDictionary());
}
示例8: ValidationSummary
public MvcHtmlString ValidationSummary(string message, Hash htmlAttributes)
{
return _helper.ValidationSummary(message, htmlAttributes.ToDictionary());
}
示例9: CheckBox
public MvcHtmlString CheckBox(string name, bool isChecked, Hash htmlAttributes)
{
return _helper.CheckBox(name, isChecked, htmlAttributes.ToDictionary());
}
示例10: RadioButton
public MvcHtmlString RadioButton(string name, object value, Hash htmlAttributes)
{
return _helper.RadioButton(name, value, htmlAttributes.ToDictionary());
}
示例11: BeginRouteForm
public MvcForm BeginRouteForm(string routeName, Hash routeValues, SymbolId method, Hash htmlAttributes)
{
return _helper.BeginRouteForm(routeName, routeValues.ToRouteDictionary(), _formMethodMapping[method], htmlAttributes.ToDictionary());
}
示例12: RouteLink
public string RouteLink(string linkText, string routeName, string protocol, string hostName, string fragment, Hash routeValues, Hash htmlAttributes)
{
return _helper.RouteLink(linkText, routeName, protocol, hostName, fragment, routeValues.ToRouteDictionary(), htmlAttributes.ToDictionary());
}
示例13: ListBox
public string ListBox(string name, RubyArray selectList, Hash htmlAttributes)
{
return _helper.ListBox(name, selectList.ToSelectListItemList(), htmlAttributes.ToDictionary());
}
示例14: BeginRouteForm
public MvcForm BeginRouteForm(string routeName, Hash routeValues, FormMethod method, Hash htmlAttributes)
{
return _helper.BeginRouteForm(routeName, routeValues.ToRouteDictionary(), method, htmlAttributes.ToDictionary());
}
示例15: ValidationMessage
public MvcHtmlString ValidationMessage(string modelName, string validationMessage, Hash htmlAttributes)
{
return _helper.ValidationMessage(modelName, validationMessage, htmlAttributes.ToDictionary());
}