Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
convert from object to ObservableCollection
Resumurof
May 31 2016 3:46 PM
306
Reply
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)
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Feeding data to graph
C#'s Object Orientation