views:

30

answers:

1

I have a database with LINQ to SQL ORM. I am manipulating the database with the repository pattern. My IAssignmentRepository implements INotifyCollectionChanged with its single event, CollectionChanged. I just want to know if it was possible (and senseless) for me to create a delegate (AssignmentsChangedDelegate) and event (AssignmentsChanged) (since I am already creating 3-4 events) that actually fires the CollectionChanged event. If this is senseless and I should just use the CollectionChanged event, then please tell me. I like to experiment with my code a little.
My delegate and event:

public delegate void AssignmentsChangedHandler(object sender, AssignmentEventArgs e);
public event AssignmentsChangedHandler AssignmentsChanged;
A: 

Do not do this!

Mohit Deshpande