static bool TryIsInSet(IHaveReactiveItems<IContent> set, IContent item) { try { return IsInSet(set, item); } catch (InvalidOperationException e) { MainLog.Logger.FormattedWarnException(e); return false; } }
static bool TryIsInSet(IHaveReactiveItems <IContent> set, IContent item) { try { return(IsInSet(set, item)); } catch (InvalidOperationException e) { MainLog.Logger.FormattedWarnException(e); return(false); } }
void SyncCgsMods(IEnumerable <IMod> mods, IHaveReactiveItems <IContent> container) { mods.SyncCollection(container.Items); }
static bool IsInSet(IHaveReactiveItems<IContent> set, IContent item) { return set.Items.Contains(item) || set.Items.Any(x => x.Name.Equals(item.Name, StringComparison.InvariantCultureIgnoreCase)); }
static bool IsInSet(IHaveReactiveItems <IContent> set, IContent item) => set.Items.Contains(item) || set.Items.Any(x => x.Name.Equals(item.Name, StringComparison.InvariantCultureIgnoreCase));