Если у вас есть DotPeek или Reflector, вы можете найти тип DefaultDisplayTemplates
, там вы найдете шаблоны.Но имейте в виду, что они в формате кода, а не в формате WebForm или бритвы, поэтому их немного сложнее интерпретировать.
StringTemplate
internal static string StringTemplate(HtmlHelper html)
{
return html.Encode(html.ViewContext.ViewData.TemplateInfo.FormattedModelValue);
}
(по умолчанию не былоШаблон DateTime, который я смог найти)
DecimalTemplate
internal static string DecimalTemplate(HtmlHelper html)
{
if (html.ViewContext.ViewData.TemplateInfo.FormattedModelValue == html.ViewContext.ViewData.ModelMetadata.Model)
html.ViewContext.ViewData.TemplateInfo.FormattedModelValue = (object) string.Format((IFormatProvider) CultureInfo.CurrentCulture, "{0:0.00}", new object[1]
{
html.ViewContext.ViewData.ModelMetadata.Model
});
return DefaultDisplayTemplates.StringTemplate(html);
}