0

I have the the following C# code:

public static MvcHtmlString ExtendedDropDownListFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<ExtendedSelectListItem> selectList, string optionLabel, object htmlAttributes)
{
    return SelectInternal(htmlHelper, optionLabel, ExpressionHelper.GetExpressionText(expression), selectList, false /* allowMultiple */, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes));
}

I am struggling with a VB conversion of this and was wondering if someone could assist. Specifically, the line in the function signature:

Expression<Func<TModel, TProperty>> expression

Thanks for any help.

2 Answers 2

1
expression As Expression(Of Func(Of TModel, TProperty))
Sign up to request clarification or add additional context in comments.

Comments

0

My bad fellow members, it was a namespace issue.

I just needed to add an imports:

Imports System.Linq.Expressions

I guess I should have dug in a little deeper before I asked. :(

1 Comment

Sometimes formulating the question helps to identify the true source of the answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.