?
Solved

Using Union with IEnumerable

Posted on 2012-08-23
2
Medium Priority
?
583 Views
Last Modified: 2012-08-24
I have this code:
IEnumerable<Control> uvaCTL = (IEnumerable<Control>)this.frUVASafetySettings.Controls;

Open in new window

The variable seems to be of type IEnumerable and I should be able to use the Union or Concat method (http://msdn.microsoft.com/en-us/library/bb341731.aspx), but it's not available. The only methods available are the basic ones, such as Equals.

What am I missing?
0
Comment
Question by:BlearyEye
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 38328082
Did you "using" System.Linq?
0
 
LVL 1

Author Comment

by:BlearyEye
ID: 38330064
That was it. From the doc I didn't get the fact that Linq added extension methods to IEnumerable<T>.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 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