public bool HasItemsFromPropertySet(InfoItemPropertySet propertySet, CompositeInfoItem itemRemoved)
{
var itemAndSubItems = new InfoItemCollection();
if (itemRemoved != null)
{
itemAndSubItems.Add(itemRemoved);
itemAndSubItems.AddRange(itemRemoved.AllDescendants);
}
return AllItems.AsParallel().Any(item => item.PropertySet == propertySet && !itemAndSubItems.Contains(item));
}
In my code I use AsParallel (). Any () How can I get the thread id of the thread created by this AsParellel.Any () ...
source
share