• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 480
  • Last Modified:

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?
0
Bruce
Asked:
Bruce
1 Solution
 
Jacques Bourgeois (James Burger)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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now