Solved

use linq to get an observable collection into an array

Posted on 2009-07-15
2
2,609 Views
Last Modified: 2013-11-11
Is it possible to use linq to get an observable collection into an array?

I have an observable collection of integer, and I want to move all of them into an array of integers.
0
Comment
Question by:dchau12
  • 2
2 Comments
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 24866295
Hi dchau12;

Using Linq to convert an observable collection of integers to an array of integers can be done as follows.

// Assuming that the variable oc is the ObservableCollection
int[] intArray = oc.ToArray();

Fernando
0
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 24875835
Hi dchau12;

Have you tried it yet?

Fernando
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now