30 references to CurrentCulture
Microsoft.AspNetCore.Mvc.TagHelpers.Test (12)
InputTagHelperTest.cs (12)
1955[InlineData("Date", Html5DateRenderingMode.CurrentCulture, "{0:d}", "date")] // Format from [DataType]. 1957[InlineData("DateTime", Html5DateRenderingMode.CurrentCulture, null, "datetime-local")] 1959[InlineData("DateOnlyDate", Html5DateRenderingMode.CurrentCulture, "{0:d}", "date")] // Format from [DataType]. 1961[InlineData("DateOnly", Html5DateRenderingMode.CurrentCulture, null, "text")] // Format from [DataType]. 1963[InlineData("DateTimeOffset", Html5DateRenderingMode.CurrentCulture, null, "text")] 1965[InlineData("DateTimeLocal", Html5DateRenderingMode.CurrentCulture, null, "datetime-local")] 1967[InlineData("Time", Html5DateRenderingMode.CurrentCulture, "{0:t}", "time")] // Format from [DataType]. 1969[InlineData("Month", Html5DateRenderingMode.CurrentCulture, "{0:yyyy-MM}", "month")] 1971[InlineData("Week", Html5DateRenderingMode.CurrentCulture, null, "week")] 2235tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture; 2296tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture; 2359tagHelper.ViewContext.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture;
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DefaultHtmlGenerator.cs (1)
1466if (dateRenderingMode != Html5DateRenderingMode.CurrentCulture)
HtmlHelperOptions.cs (1)
19/// Set this property to <see cref="Html5DateRenderingMode.CurrentCulture" /> to have templated helpers such as
Rendering\IHtmlHelper.cs (1)
17/// Set this property to <see cref="Html5DateRenderingMode.CurrentCulture" /> to have templated helpers such as
Rendering\ViewContext.cs (1)
136/// Set this property to <see cref="Html5DateRenderingMode.CurrentCulture" /> to have templated helpers such as
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
DefaultEditorTemplatesTest.cs (9)
1002helper.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture; 1141helper.Html5DateRenderingMode = Html5DateRenderingMode.CurrentCulture; 1152[InlineData(null, Html5DateRenderingMode.CurrentCulture, "text")] 1154[InlineData("date", Html5DateRenderingMode.CurrentCulture, "date")] 1156[InlineData("datetime", Html5DateRenderingMode.CurrentCulture, "datetime-local")] 1158[InlineData("datetime-local", Html5DateRenderingMode.CurrentCulture, "datetime-local")] 1160[InlineData("time", Html5DateRenderingMode.CurrentCulture, "time")] 1162[InlineData("month", Html5DateRenderingMode.CurrentCulture, "month")] 1164[InlineData("week", Html5DateRenderingMode.CurrentCulture, "week")]
DefaultHtmlGeneratorTest.cs (5)
345{"date", Html5DateRenderingMode.CurrentCulture, false }, 346{"datetime-local", Html5DateRenderingMode.CurrentCulture, false }, 347{"month", Html5DateRenderingMode.CurrentCulture, false }, 348{"time", Html5DateRenderingMode.CurrentCulture, false }, 349{"week", Html5DateRenderingMode.CurrentCulture, false },