Solved

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

Posted on 2011-09-21
2
459 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Send parameters via datatable ajax call 4 48
Timeouts during development 3 29
Convert a string to date 4 40
VS C# Creating a library of functions 3 29
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

752 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