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
Shanthosh Siva
NA
107
15.3k
using observal coll delete a items in both collection
Mar 21 2019 12:57 AM
Using two observal collction i want to remove items from matching same id with two collection...
Collections:
1. windows
2. windows size
My Code:
foreach (var heat in Settings.RoomViewModelCollection)
{
foreach (var room in heat.HeatTransmission)
{
if (room.Windows.Any(x => WindowSize.Any(y => y.WindowSizeId.Equals(x.WindowSizeId))))
{
heat.HeatTransmission.Remove(room);
break;
}
}
}
Reply
Answers (
3
)
my application is going down after some time of running
2 Data Sources in single datagridview