diff --git a/src/ObservableCollections/ObservableDictionary.Views.cs b/src/ObservableCollections/ObservableDictionary.Views.cs index ece0950..9ee370c 100644 --- a/src/ObservableCollections/ObservableDictionary.Views.cs +++ b/src/ObservableCollections/ObservableDictionary.Views.cs @@ -7,7 +7,7 @@ namespace ObservableCollections { - public sealed partial class ObservableDictionary + public partial class ObservableDictionary { public ISynchronizedView, TView> CreateView(Func, TView> transform) { diff --git a/src/ObservableCollections/ObservableDictionary.cs b/src/ObservableCollections/ObservableDictionary.cs index bb9e2f8..9d8b77a 100644 --- a/src/ObservableCollections/ObservableDictionary.cs +++ b/src/ObservableCollections/ObservableDictionary.cs @@ -7,7 +7,7 @@ namespace ObservableCollections { - public sealed partial class ObservableDictionary : IDictionary, IReadOnlyObservableDictionary + public partial class ObservableDictionary : IDictionary, IReadOnlyObservableDictionary where TKey : notnull { readonly Dictionary dictionary; diff --git a/src/ObservableCollections/ObservableFixedSizeRingBuffer.cs b/src/ObservableCollections/ObservableFixedSizeRingBuffer.cs index 658a69c..0dc73ce 100644 --- a/src/ObservableCollections/ObservableFixedSizeRingBuffer.cs +++ b/src/ObservableCollections/ObservableFixedSizeRingBuffer.cs @@ -5,7 +5,7 @@ namespace ObservableCollections { - public sealed partial class ObservableFixedSizeRingBuffer : IList, IReadOnlyList, IObservableCollection + public partial class ObservableFixedSizeRingBuffer : IList, IReadOnlyList, IObservableCollection { readonly RingBuffer buffer; readonly int capacity; diff --git a/src/ObservableCollections/ObservableHashSet.Views.cs b/src/ObservableCollections/ObservableHashSet.Views.cs index 50669d1..b355eaa 100644 --- a/src/ObservableCollections/ObservableHashSet.Views.cs +++ b/src/ObservableCollections/ObservableHashSet.Views.cs @@ -8,7 +8,7 @@ namespace ObservableCollections { - public sealed partial class ObservableHashSet : IReadOnlyCollection, IObservableCollection + public partial class ObservableHashSet : IReadOnlyCollection, IObservableCollection { public ISynchronizedView CreateView(Func transform) { diff --git a/src/ObservableCollections/ObservableHashSet.cs b/src/ObservableCollections/ObservableHashSet.cs index 0b95615..2534741 100644 --- a/src/ObservableCollections/ObservableHashSet.cs +++ b/src/ObservableCollections/ObservableHashSet.cs @@ -8,7 +8,7 @@ namespace ObservableCollections { // can not implements ISet because set operation can not get added/removed values. - public sealed partial class ObservableHashSet : IReadOnlySet, IReadOnlyCollection, IObservableCollection + public partial class ObservableHashSet : IReadOnlySet, IReadOnlyCollection, IObservableCollection where T : notnull { readonly HashSet set; diff --git a/src/ObservableCollections/ObservableList.OptimizeView.cs b/src/ObservableCollections/ObservableList.OptimizeView.cs index c5052da..453b7c4 100644 --- a/src/ObservableCollections/ObservableList.OptimizeView.cs +++ b/src/ObservableCollections/ObservableList.OptimizeView.cs @@ -7,7 +7,7 @@ namespace ObservableCollections; -public sealed partial class ObservableList : IList, IReadOnlyObservableList +public partial class ObservableList : IList, IReadOnlyObservableList { // override extension methods(IObservableCollection.cs ObservableCollectionExtensions) diff --git a/src/ObservableCollections/ObservableList.Views.cs b/src/ObservableCollections/ObservableList.Views.cs index 5eea0af..f4e35f2 100644 --- a/src/ObservableCollections/ObservableList.Views.cs +++ b/src/ObservableCollections/ObservableList.Views.cs @@ -7,7 +7,7 @@ namespace ObservableCollections { - public sealed partial class ObservableList : IList, IReadOnlyObservableList + public partial class ObservableList : IList, IReadOnlyObservableList { public ISynchronizedView CreateView(Func transform) { diff --git a/src/ObservableCollections/ObservableList.cs b/src/ObservableCollections/ObservableList.cs index 47a0d17..31c9294 100644 --- a/src/ObservableCollections/ObservableList.cs +++ b/src/ObservableCollections/ObservableList.cs @@ -7,7 +7,7 @@ namespace ObservableCollections { - public sealed partial class ObservableList : IList, IReadOnlyObservableList + public partial class ObservableList : IList, IReadOnlyObservableList { readonly List list; public object SyncRoot { get; } = new(); diff --git a/src/ObservableCollections/ObservableQueue.Views.cs b/src/ObservableCollections/ObservableQueue.Views.cs index e118dcf..b86af9d 100644 --- a/src/ObservableCollections/ObservableQueue.Views.cs +++ b/src/ObservableCollections/ObservableQueue.Views.cs @@ -8,7 +8,7 @@ namespace ObservableCollections { - public sealed partial class ObservableQueue : IReadOnlyCollection, IObservableCollection + public partial class ObservableQueue : IReadOnlyCollection, IObservableCollection { public ISynchronizedView CreateView(Func transform) { diff --git a/src/ObservableCollections/ObservableQueue.cs b/src/ObservableCollections/ObservableQueue.cs index db18b5b..fde7707 100644 --- a/src/ObservableCollections/ObservableQueue.cs +++ b/src/ObservableCollections/ObservableQueue.cs @@ -10,7 +10,7 @@ namespace ObservableCollections { - public sealed partial class ObservableQueue : IReadOnlyCollection, IObservableCollection + public partial class ObservableQueue : IReadOnlyCollection, IObservableCollection { readonly Queue queue; public object SyncRoot { get; } = new object(); diff --git a/src/ObservableCollections/ObservableRingBuffer.Views.cs b/src/ObservableCollections/ObservableRingBuffer.Views.cs index fed1f17..7cf58bd 100644 --- a/src/ObservableCollections/ObservableRingBuffer.Views.cs +++ b/src/ObservableCollections/ObservableRingBuffer.Views.cs @@ -8,7 +8,7 @@ namespace ObservableCollections { - public sealed partial class ObservableRingBuffer + public partial class ObservableRingBuffer { public ISynchronizedView CreateView(Func transform) { diff --git a/src/ObservableCollections/ObservableRingBuffer.cs b/src/ObservableCollections/ObservableRingBuffer.cs index 26976b9..c1b1825 100644 --- a/src/ObservableCollections/ObservableRingBuffer.cs +++ b/src/ObservableCollections/ObservableRingBuffer.cs @@ -6,7 +6,7 @@ namespace ObservableCollections { - public sealed partial class ObservableRingBuffer : IList, IReadOnlyList, IObservableCollection + public partial class ObservableRingBuffer : IList, IReadOnlyList, IObservableCollection { readonly RingBuffer buffer; diff --git a/src/ObservableCollections/ObservableStack.Views.cs b/src/ObservableCollections/ObservableStack.Views.cs index 67b9bdb..b6206e4 100644 --- a/src/ObservableCollections/ObservableStack.Views.cs +++ b/src/ObservableCollections/ObservableStack.Views.cs @@ -7,7 +7,7 @@ namespace ObservableCollections { - public sealed partial class ObservableStack : IReadOnlyCollection, IObservableCollection + public partial class ObservableStack : IReadOnlyCollection, IObservableCollection { public ISynchronizedView CreateView(Func transform) { diff --git a/src/ObservableCollections/ObservableStack.cs b/src/ObservableCollections/ObservableStack.cs index 9103f00..78fea38 100644 --- a/src/ObservableCollections/ObservableStack.cs +++ b/src/ObservableCollections/ObservableStack.cs @@ -8,7 +8,7 @@ namespace ObservableCollections { - public sealed partial class ObservableStack : IReadOnlyCollection, IObservableCollection + public partial class ObservableStack : IReadOnlyCollection, IObservableCollection { readonly Stack stack; public object SyncRoot { get; } = new object(); diff --git a/src/ObservableCollections/RingBuffer.cs b/src/ObservableCollections/RingBuffer.cs index 3d45700..9212e45 100644 --- a/src/ObservableCollections/RingBuffer.cs +++ b/src/ObservableCollections/RingBuffer.cs @@ -6,7 +6,7 @@ namespace ObservableCollections { - public sealed class RingBuffer : IList, IReadOnlyList + public class RingBuffer : IList, IReadOnlyList { T[] buffer; int head;