public void PushObject(object instance) { lock (stackSyncObject) { OutputObjects.Push(instance); } if (OutputNotificationType == NotificationType.Auto) { OnOutputAvailable(); } }
public void PushMultiObjects(IList <object> instances) { lock (stackSyncObject) { foreach (object instance in instances) { OutputObjects.Push(instance); } } if (OutputNotificationType == NotificationType.Auto) { OnOutputAvailable(); } }