public static IPersistentSettingsCollection <TCollection> ToFilteredSettingsCollection <TCollection>( this IPersistentSettingsCollection <TCollection> collection, Func <TCollection, ISetting, bool> predicate) where TCollection : ISettingsCollection { return(new FilteredPersistentCollection <TCollection>(collection, predicate)); }
public FilteredPersistentCollection( IPersistentSettingsCollection <TCollection> collection, Func <TCollection, ISetting, bool> predicate) { this.collection = collection; this.predicate = predicate; }