Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.TagHelpers/SelectValueOptionTagHelper.cs
/// <summary>
///     Provide a standard manner to add the selected value to the context.
/// </summary>
/// <param name="context">The context object.</param>
/// <param name="value">The value to be added.</param>
/// <param name="comparison">
///     The comparison mode for the <paramref name="value" />. The default value of this parameter is
///     defined in <see cref="DefaultSelectValueCompareMode" />.
/// </param>
Provide a standard manner to add the selected value to the context.
Provide a standard manner to add the selected value to the context .
[PublicAPI]
		public static void SetSelectedValue(TagHelperContext context, string value,
			StringComparison comparison = DefaultSelectValueCompareMode)
		{
			context.Items[SelectedValueItemKey] = value;
			context.Items[SelectedValueCompareModeKey] = comparison;
		}
[ PublicAPI ] public static void SetSelectedValue ( TagHelperContext context , string value , StringComparison comparison = DefaultSelectValueCompareMode ) { context . Items [ SelectedValueItemKey ] = value ; context . Items [ SelectedValueCompareModeKey ] = comparison ; }
Provide a standard manner to add the selected value to the context.
Provide a standard manner to add the selected value to the context .
context
TagHelperContext
The context object.
The context object .
value
string
The value to be added.
The value to be added .
comparison
StringComparison
The comparison mode for the . The default value of this parameter is
defined in .
The comparison mode for the . The default value of this parameter is defined in .