private void EventRemove(Instance inst) { var eArg = new InstanceCollectionEventArgs() { Reference = inst, Type = InstanceCollectionEventType.RemoveObject }; OnObjectRemove?.Invoke(eArg); OnGeneralizedEvent?.Invoke(eArg); }
private void EventAccess(Instance inst) { var eArg = new InstanceCollectionEventArgs() { Reference = inst, Type = InstanceCollectionEventType.AccessedObject }; OnObjectAccess?.Invoke(eArg); OnGeneralizedEvent?.Invoke(eArg); }
private void EventAdd(Instance inst) { if (!_allowEvent) { return; } var eArg = new InstanceCollectionEventArgs() { Reference = inst, Type = InstanceCollectionEventType.AddObject }; OnObjectAdd?.Invoke(eArg); OnGeneralizedEvent?.Invoke(eArg); }