1 //-----------------------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //-----------------------------------------------------------------------------
5 namespace System.Activities.Presentation
7 using System.Collections.ObjectModel;
8 using System.Collections.Generic;
11 class ModelItemKeyValuePair<TKey, TValue>
13 internal DictionaryItemsCollection<TKey, TValue> collection;
19 public ModelItemKeyValuePair()
23 public ModelItemKeyValuePair(TKey key, TValue value)
29 [Fx.Tag.KnownXamlExternal]
38 if (this.collection != null)
40 this.collection.PreUpdateKey(this.key, value);
43 if (this.collection != null)
45 this.collection.PostUpdateKey();
50 [Fx.Tag.KnownXamlExternal]
59 if (this.collection != null)
61 this.collection.UpdateValue(this.key, value);