Solved

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

Posted on 2011-09-21
2
456 Views
Last Modified: 2013-11-07
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
Comment
Question by:Bruce
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 36575021
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
 
LVL 1

Author Closing Comment

by:Bruce
ID: 36575047
Needed to add System.Linq
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Add different cell to otherwise similiar row 4 39
Getting error in connectionstring with Excel. 30 35
Expression Evaluater 3 27
Release Dynamically Allocated Memory in C# 3 28
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question