void VB._dispReferences_Events.ItemAdded(VB.Reference reference) { using (var adding = new Reference(reference)) { ItemAdded?.Invoke(this, new ReferenceEventArgs(new ReferenceInfo(adding), adding.Type)); } }
void VB._dispReferences_Events.ItemRemoved(VB.Reference reference) { using (var removing = new Reference(reference)) { ItemRemoved?.Invoke(this, new ReferenceEventArgs(new ReferenceInfo(removing), removing.Type)); } }
void VB._dispReferencesEvents.ItemAdded(VB.Reference Reference) { var referenceWrapper = new Reference(Reference); var handler = ItemAdded; if (handler == null) { referenceWrapper.Dispose(); return; } handler.Invoke(this, new ReferenceEventArgs(referenceWrapper)); }