public void AddRange(IKeyedLookup <TKey, TItem> source) { foreach (KeyValuePair <TKey, TItem> pair in source.Pairs) { Add(pair.Key, pair.Value); } }
public static IKeyedLookup <TKey, TItem> Create <TKey, TItem>( this IKeyedLookup <TKey, TItem>?template, Messenger messenger, Action <Configurator <ILookupMutator <TKey, TItem> > > config ) where TKey : notnull { var collection = new KeyedLookup <TKey, TItem>(); var configurator = new Configurator <ILookupMutator <TKey, TItem> >( messenger, new KeyedLookupMutator <TKey, TItem>(collection)); config(configurator); return(collection); }
private UpdateServices() { Status = new KeyedLookup <ID, StatusDO>(); }