src/MvcContrib.FluentHtml/Elements/SelectBase.cs
/// <summary>
/// Set the options for the select list.
/// </summary>
/// <typeparam name="TSource">The type of the source item.</typeparam>
/// <param name="values">The items used to create the select list.</param>
/// <param name="valueFieldSelector">The member to use as the value of the select list.</param>
/// <param name="textFieldSelector">The member to use as the text of the select list.</param>
/// <param name="groupSelector">Function used to group items in the select list.</param>
Set the options for the select list.
Set the options for the select list .
public virtual T Options<TSource>(IEnumerable<TSource> values, Func<TSource, object> valueFieldSelector, Func<TSource, object> textFieldSelector, Func<TSource, object> groupSelector)
		{
			_optionChoices.Set(values, valueFieldSelector, textFieldSelector, groupSelector);
			return (T)this;
		}
public virtual T Options < TSource > ( IEnumerable < TSource > values , Func < TSource , object > valueFieldSelector , Func < TSource , object > textFieldSelector , Func < TSource , object > groupSelector ) { _optionChoices . Set ( values , valueFieldSelector , textFieldSelector , groupSelector ) ; return ( T ) this ; }
Set the options for the select list.
Set the options for the select list .
values
IEnumerable<TSource>
The items used to create the select list.
The items used to create the select list .
valueFieldSelector
Func<TSource, object>
The member to use as the value of the select list.
The member to use as the value of the select list .
textFieldSelector
Func<TSource, object>
The member to use as the text of the select list.
The member to use as the text of the select list .
groupSelector
Func<TSource, object>
Function used to group items in the select list.
Function used to group items in the select list .
typeparam
The type of the source item.
The type of the source item .