当前位置: 首页>>代码示例>>C#>>正文


C# Hash.ToDictionary方法代码示例

本文整理汇总了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());
 }
开发者ID:jredville,项目名称:ironrubymvc,代码行数:4,代码来源:RubyInputHelper.cs

示例2: DropDownList

 public string DropDownList(string name, RubyArray selectList, string optionLabel, Hash htmlAttributes)
 {
     return _helper.DropDownList(name, selectList.ToSelectListItemList(), optionLabel, htmlAttributes.ToDictionary());
 }
开发者ID:jredville,项目名称:ironrubymvc,代码行数:4,代码来源:RubySelectHelper.cs

示例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());
 }
开发者ID:panesofglass,项目名称:ironrubymvc,代码行数:5,代码来源:RubyAjaxHelper.cs

示例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());
 }
开发者ID:jredville,项目名称:ironrubymvc,代码行数:4,代码来源:RubyLinkHelper.cs

示例5: TextArea

 public string TextArea(string name, string value, int rows, int columns, Hash htmlAttributes)
 {
     return _helper.TextArea(name, value, rows, columns, htmlAttributes.ToDictionary());
 }
开发者ID:jschementi,项目名称:ironrubymvc,代码行数:4,代码来源:RubyTextAreaHelper.cs

示例6: RouteLink

 public MvcHtmlString RouteLink(string linkText, string routeName, AjaxOptions ajaxOptions, Hash htmlAttributes)
 {
     return _helper.RouteLink(linkText, routeName, ajaxOptions, htmlAttributes.ToDictionary());
 }
开发者ID:panesofglass,项目名称:ironrubymvc,代码行数:4,代码来源:RubyAjaxHelper.cs

示例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());
 }
开发者ID:jdhardy,项目名称:ironrubymvc,代码行数:4,代码来源:RubyFormHelper.cs

示例8: ValidationSummary

 public MvcHtmlString ValidationSummary(string message, Hash htmlAttributes)
 {
     return _helper.ValidationSummary(message, htmlAttributes.ToDictionary());
 }
开发者ID:panesofglass,项目名称:ironrubymvc,代码行数:4,代码来源:RubyValidationHelpers.cs

示例9: CheckBox

 public MvcHtmlString CheckBox(string name, bool isChecked, Hash htmlAttributes)
 {
     return _helper.CheckBox(name, isChecked, htmlAttributes.ToDictionary());
 }
开发者ID:panesofglass,项目名称:ironrubymvc,代码行数:4,代码来源:RubyInputHelper.cs

示例10: RadioButton

 public MvcHtmlString RadioButton(string name, object value, Hash htmlAttributes)
 {
     return _helper.RadioButton(name, value, htmlAttributes.ToDictionary());
 }
开发者ID:panesofglass,项目名称:ironrubymvc,代码行数:4,代码来源:RubyInputHelper.cs

示例11: BeginRouteForm

 public MvcForm BeginRouteForm(string routeName, Hash routeValues, SymbolId method, Hash htmlAttributes)
 {
     return _helper.BeginRouteForm(routeName, routeValues.ToRouteDictionary(), _formMethodMapping[method], htmlAttributes.ToDictionary());
 }
开发者ID:jredville,项目名称:ironrubymvc,代码行数:4,代码来源:RubyFormHelper.cs

示例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());
 }
开发者ID:jredville,项目名称:ironrubymvc,代码行数:4,代码来源:RubyLinkHelper.cs

示例13: ListBox

 public string ListBox(string name, RubyArray selectList, Hash htmlAttributes)
 {
     return _helper.ListBox(name, selectList.ToSelectListItemList(), htmlAttributes.ToDictionary());
 }
开发者ID:jredville,项目名称:ironrubymvc,代码行数:4,代码来源:RubySelectHelper.cs

示例14: BeginRouteForm

 public MvcForm BeginRouteForm(string routeName, Hash routeValues, FormMethod method, Hash htmlAttributes)
 {
     return _helper.BeginRouteForm(routeName, routeValues.ToRouteDictionary(), method, htmlAttributes.ToDictionary());
 }
开发者ID:jdhardy,项目名称:ironrubymvc,代码行数:4,代码来源:RubyFormHelper.cs

示例15: ValidationMessage

 public MvcHtmlString ValidationMessage(string modelName, string validationMessage, Hash htmlAttributes)
 {
     return _helper.ValidationMessage(modelName, validationMessage, htmlAttributes.ToDictionary());
 }
开发者ID:panesofglass,项目名称:ironrubymvc,代码行数:4,代码来源:RubyValidationHelpers.cs


注:本文中的Hash.ToDictionary方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。