public string SomeFunction<TModel, TValue>(this HtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression){ var valueOfExpression = html.ValueFor(expression); //do your stuff }