2011-09-29 21 views

cevap

4

Örneğin, (statik sınıfta) Uzantınızın yöntemleri oluşturabilirsiniz:

public static MvcHtmlString MyTextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> helper, Expression<Func<TModel, TProperty>> expression) 
     { 
      // call original method 
      MvcHtmlString result = InputExtensions.TextBoxFor(helper, expression); 
      // do modification to result 
      return result; 
     }