diff --git a/src/ObservableCollections/IObservableCollection.cs b/src/ObservableCollections/IObservableCollection.cs index 9134cbf..2c8691b 100644 --- a/src/ObservableCollections/IObservableCollection.cs +++ b/src/ObservableCollections/IObservableCollection.cs @@ -176,22 +176,22 @@ namespace ObservableCollections return new NonFilteredSynchronizedViewList(collection.CreateView(transform), isSupportRangeFeature: true, null, null); } - public static INotifyCollectionChangedSynchronizedViewList ToNotifyCollectionChanged(this IObservableCollection collection) + public static NotifyCollectionChangedSynchronizedViewList ToNotifyCollectionChanged(this IObservableCollection collection) { return ToNotifyCollectionChanged(collection, null); } - public static INotifyCollectionChangedSynchronizedViewList ToNotifyCollectionChanged(this IObservableCollection collection, ICollectionEventDispatcher? collectionEventDispatcher) + public static NotifyCollectionChangedSynchronizedViewList ToNotifyCollectionChanged(this IObservableCollection collection, ICollectionEventDispatcher? collectionEventDispatcher) { return ToNotifyCollectionChanged(collection, static x => x, collectionEventDispatcher); } - public static INotifyCollectionChangedSynchronizedViewList ToNotifyCollectionChanged(this IObservableCollection collection, Func transform) + public static NotifyCollectionChangedSynchronizedViewList ToNotifyCollectionChanged(this IObservableCollection collection, Func transform) { return ToNotifyCollectionChanged(collection, transform, null!); } - public static INotifyCollectionChangedSynchronizedViewList ToNotifyCollectionChanged(this IObservableCollection collection, Func transform, ICollectionEventDispatcher? collectionEventDispatcher) + public static NotifyCollectionChangedSynchronizedViewList ToNotifyCollectionChanged(this IObservableCollection collection, Func transform, ICollectionEventDispatcher? collectionEventDispatcher) { // Optimized for non filtered return new NonFilteredSynchronizedViewList(collection.CreateView(transform), isSupportRangeFeature: false, collectionEventDispatcher, null); diff --git a/src/ObservableCollections/ObservableList.Views.cs b/src/ObservableCollections/ObservableList.Views.cs index f4e35f2..7581db2 100644 --- a/src/ObservableCollections/ObservableList.Views.cs +++ b/src/ObservableCollections/ObservableList.Views.cs @@ -19,12 +19,12 @@ namespace ObservableCollections return new View(this, transform); } - public INotifyCollectionChangedSynchronizedViewList ToWritableNotifyCollectionChanged() + public NotifyCollectionChangedSynchronizedViewList ToWritableNotifyCollectionChanged() { return ToWritableNotifyCollectionChanged(null); } - public INotifyCollectionChangedSynchronizedViewList ToWritableNotifyCollectionChanged(ICollectionEventDispatcher? collectionEventDispatcher) + public NotifyCollectionChangedSynchronizedViewList ToWritableNotifyCollectionChanged(ICollectionEventDispatcher? collectionEventDispatcher) { return ToWritableNotifyCollectionChanged( static x => x, @@ -36,12 +36,12 @@ namespace ObservableCollections collectionEventDispatcher); } - public INotifyCollectionChangedSynchronizedViewList ToWritableNotifyCollectionChanged(Func transform, WritableViewChangedEventHandler? converter) + public NotifyCollectionChangedSynchronizedViewList ToWritableNotifyCollectionChanged(Func transform, WritableViewChangedEventHandler? converter) { return ToWritableNotifyCollectionChanged(transform, converter, null!); } - public INotifyCollectionChangedSynchronizedViewList ToWritableNotifyCollectionChanged(Func transform, WritableViewChangedEventHandler? converter, ICollectionEventDispatcher? collectionEventDispatcher) + public NotifyCollectionChangedSynchronizedViewList ToWritableNotifyCollectionChanged(Func transform, WritableViewChangedEventHandler? converter, ICollectionEventDispatcher? collectionEventDispatcher) { return new NonFilteredSynchronizedViewList(CreateView(transform), isSupportRangeFeature: false, collectionEventDispatcher, converter); }