private void RemoveAll() { allItems.Clear(); CollectionChangeCleared?.Invoke(this, EventArgs.Empty); }
private void IdentityCollection_CollectionChangeCleared(object sender, EventArgs e) { CollectionChangeCleared?.Invoke(this, EventArgs.Empty); }
/// <summary> /// Removes all items from collection and sends event <see cref="CollectionChangeCleared"/>. /// </summary> public void Clear() { identityItems.Clear(); CollectionChangeCleared?.Invoke(this, EventArgs.Empty); }