diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Rendering/SelectListItem.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Rendering/SelectListItem.cs
index af32345074..bca0dd88e7 100644
--- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Rendering/SelectListItem.cs
+++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Rendering/SelectListItem.cs
@@ -10,14 +10,35 @@ namespace Microsoft.AspNetCore.Mvc.Rendering
///
public class SelectListItem
{
+ ///
+ /// Initializes a new instance of .
+ ///
public SelectListItem() { }
- public SelectListItem(string text, string value, bool selected = false, bool disabled = false)
+ ///
+ /// Initializes a new instance of .
+ ///
+ /// The display text of this .
+ /// The value of this .
+ public SelectListItem(string text, string value)
+ : this()
+ {
+ Text = text;
+ Value = value;
+ }
+
+ ///
+ /// Initializes a new instance of .
+ ///
+ /// The display text of this .
+ /// The value of this .
+ /// Value that indicates whether this is selected.
+ /// Value that indicates whether this is disabled.
+ public SelectListItem(string text, string value, bool selected, bool disabled)
+ : this(text, value)
{
Disabled = disabled;
Selected = selected;
- Text = text;
- Value = value;
}
///