I\'ve currently got a piece of Linq that looks something like this ;
List childrenToBeRemoved = this.ItemsSource.Where(o => o.ParentID == \"123
If you know the type of your items, you can use reflection :
PropertyInfo parentProp = itemType.GetProperty("ParentKey or whatever"); List childrenToBeRemoved = this.ItemsSource.Where(o => Equals("1234", parentProp.GetValue(o, null))).ToList();