<PackageReference Include="NJsonSchema" Version="9.10.25" />

ObservableDictionary<TKey, TValue>

An implementation of an observable dictionary.
public int Count { get; }

protected IDictionary<TKey, TValue> Dictionary { get; }

Gets the underlying dictonary.

public bool IsFixedSize { get; }

public bool IsReadOnly { get; }

public bool IsSynchronized { get; }

public TValue this[TKey key] { get; set; }

public ICollection<TKey> Keys { get; }

public object SyncRoot { get; }

public ICollection<TValue> Values { get; }

Initializes a new instance of the ObservableDictionary<T, U> class.

public ObservableDictionary(IDictionary<TKey, TValue> dictionary)

Initializes a new instance of the ObservableDictionary<T, U> class.

public ObservableDictionary(IEqualityComparer<TKey> comparer)

Initializes a new instance of the ObservableDictionary<T, U> class.

public ObservableDictionary(int capacity)

Initializes a new instance of the ObservableDictionary<T, U> class.

public ObservableDictionary(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey> comparer)

Initializes a new instance of the ObservableDictionary<T, U> class.

public ObservableDictionary(int capacity, IEqualityComparer<TKey> comparer)

Initializes a new instance of the ObservableDictionary<T, U> class.

public void Add(TKey key, TValue value)

public void Add(KeyValuePair<TKey, TValue> item)

public void AddRange(IDictionary<TKey, TValue> items)

Adds multiple key-value pairs the the dictionary.

public void Clear()

public bool Contains(object key)

public bool Contains(KeyValuePair<TKey, TValue> item)

public bool ContainsKey(TKey key)

public void CopyTo(KeyValuePair<TKey, TValue>[] array, int arrayIndex)

public void CopyTo(Array array, int index)

public IEnumerator<KeyValuePair<TKey, TValue>> GetEnumerator()

public void Initialize(IEnumerable<KeyValuePair<TKey, TValue>> keyValuePairs)

public void Initialize(IEnumerable keyValuePairs)

protected virtual void Insert(TKey key, TValue value, bool add)

Inserts a key-value pair into the dictionary.

protected void OnCollectionChanged()

protected void OnCollectionChanged(NotifyCollectionChangedAction action, KeyValuePair<TKey, TValue> changedItem)

protected void OnCollectionChanged(NotifyCollectionChangedAction action, KeyValuePair<TKey, TValue> newItem, KeyValuePair<TKey, TValue> oldItem)

protected void OnCollectionChanged(NotifyCollectionChangedAction action, IList newItems)

protected virtual void OnPropertyChanged(string propertyName)

public virtual bool Remove(TKey key)

public void Remove(object key)

public bool Remove(KeyValuePair<TKey, TValue> item)

public bool TryGetValue(TKey key, out TValue value)