Method GetOtherMembersOfGroup
GetOtherMembersOfGroup(IEnumerable<ListControlItem>, ObjectUniqueId?, ListControlItem)
Gets the members of a specific group within the collection except the specified item. Uses the Group property to filter items.
public static IEnumerable<ListControlItem> GetOtherMembersOfGroup(IEnumerable<ListControlItem> collection, ObjectUniqueId? group, ListControlItem excludeItem)
Parameters
collectionIEnumerable<ListControlItem>The collection of ListControlItem.
groupObjectUniqueId?The unique identifier for the group.
excludeItemListControlItemThe item to exclude from the results.
Returns
- IEnumerable<ListControlItem>
Enumerable collection of ListControlItem belonging to the specified group except for the excluded item.
Remarks
If group is null, an empty collection is returned.