add IReadOnlyObservableDictionary interface
This commit is contained in:
parent
e34d0231c6
commit
89a9424ec3
@ -15,6 +15,11 @@ namespace ObservableCollections
|
|||||||
ISynchronizedView<T, TView> CreateView<TView>(Func<T, TView> transform, bool reverse = false);
|
ISynchronizedView<T, TView> CreateView<TView>(Func<T, TView> transform, bool reverse = false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public interface IReadOnlyObservableDictionary<TKey, TValue> :
|
||||||
|
IReadOnlyDictionary<TKey, TValue>, IObservableCollection<KeyValuePair<TKey, TValue>>
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public interface IFreezedCollection<T>
|
public interface IFreezedCollection<T>
|
||||||
{
|
{
|
||||||
ISynchronizedView<T, TView> CreateView<TView>(Func<T, TView> transform, bool reverse = false);
|
ISynchronizedView<T, TView> CreateView<TView>(Func<T, TView> transform, bool reverse = false);
|
||||||
|
@ -6,8 +6,8 @@ using System.Diagnostics.CodeAnalysis;
|
|||||||
|
|
||||||
namespace ObservableCollections
|
namespace ObservableCollections
|
||||||
{
|
{
|
||||||
public sealed partial class ObservableDictionary<TKey, TValue>
|
public sealed partial class ObservableDictionary<TKey, TValue> : IDictionary<TKey, TValue>,
|
||||||
: IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue>, IObservableCollection<KeyValuePair<TKey, TValue>>
|
IReadOnlyObservableDictionary<TKey, TValue>
|
||||||
where TKey : notnull
|
where TKey : notnull
|
||||||
{
|
{
|
||||||
readonly Dictionary<TKey, TValue> dictionary;
|
readonly Dictionary<TKey, TValue> dictionary;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user