private static BridgeUpdater CheckForRemove(BridgeUpdater updater, IJsCsGlue glue) { if (glue.Release()) { updater.Remove(glue); } return(updater); }
private static BridgeUpdater CheckForRemove(BridgeUpdater updater, List <IJsCsGlue> glues) { glues.ForEach(glue => { if (glue.Release()) { updater.Remove(glue); } }); return(updater); }