public static MvcHtmlString TextFor(this HtmlHelper html, PropertyDescriptor descriptor) { var property = descriptor.AsModel(); return new MvcHtmlString(ResolveText(property, GetMetadata(property))); }
public static MvcHtmlString LabelFor(this HtmlHelper html, PropertyDescriptor descriptor) { return LabelFor(html, descriptor.AsModel(), null, null); }