How do I get Extension methods to show on my IList object?

I have this declaration:
public IList<IMyType> MyTypeList { get; set; }

But .Select is not available.

I see other code in the project I am working on that accesses this extension method.  I have looked through the "includes" but don't see a difference between the files that access .Select and my class file.

What do I need to include to make .Select available to my IList?
LVL 1
BruceAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Jacques Bourgeois (James Burger)Connect With a Mentor PresidentCommented:
The namespace for the Select method has to be defined with a using statement at the top of the files where you want to use the extension.
0
 
BruceAuthor Commented:
Needed to add System.Linq
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.