TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Resumurof
NA
50
6.5k
convert from object to ObservableCollection
May 31 2016 3:46 PM
Hi,
Could anyone help me to convert from object to ObservableCollection, sample code below
func1()
{
lvItems.ItemsSource = portNameLists; //portNameLists is of type ObservableCollection getting assigned to listview object
CollectionView view = (CollectionView)CollectionViewSource.GetDefaultView(lvItems.ItemsSource);
view.Filter = func2;
}
func2(object item)
{
// here i need to convert item which is of type object to ObservableCollection
so that i can perform like
item.Where(X => X.address == addr.Text)
}
Reply
Answers (
1
)
Feeding data to graph
C#'s Object Orientation