Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / ModelItemKeyValuePair.cs / 1305376 / ModelItemKeyValuePair.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Presentation { using System.Collections.ObjectModel; using System.Collections.Generic; using System.Runtime; class ModelItemKeyValuePair{ internal DictionaryItemsCollection collection; TKey key; TValue value; public ModelItemKeyValuePair() { } public ModelItemKeyValuePair(TKey key, TValue value) { this.key = key; this.value = value; } [Fx.Tag.KnownXamlExternal] public TKey Key { get { return this.key; } set { if (this.collection != null) { this.collection.PreUpdateKey(this.key, value); } this.key = value; if (this.collection != null) { this.collection.PostUpdateKey(); } } } [Fx.Tag.KnownXamlExternal] public TValue Value { get { return this.value; } set { if (this.collection != null) { this.collection.UpdateValue(this.key, value); } this.value = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Presentation { using System.Collections.ObjectModel; using System.Collections.Generic; using System.Runtime; class ModelItemKeyValuePair { internal DictionaryItemsCollection collection; TKey key; TValue value; public ModelItemKeyValuePair() { } public ModelItemKeyValuePair(TKey key, TValue value) { this.key = key; this.value = value; } [Fx.Tag.KnownXamlExternal] public TKey Key { get { return this.key; } set { if (this.collection != null) { this.collection.PreUpdateKey(this.key, value); } this.key = value; if (this.collection != null) { this.collection.PostUpdateKey(); } } } [Fx.Tag.KnownXamlExternal] public TValue Value { get { return this.value; } set { if (this.collection != null) { this.collection.UpdateValue(this.key, value); } this.value = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartZoneBase.cs
- AttachedPropertiesService.cs
- ReflectionUtil.cs
- UIElement.cs
- GlyphShapingProperties.cs
- HttpCapabilitiesSectionHandler.cs
- MonthChangedEventArgs.cs
- AppSettingsReader.cs
- ParserContext.cs
- ContextMenu.cs
- OrderedDictionaryStateHelper.cs
- SQLBoolean.cs
- XmlAttributeCollection.cs
- CompositeScriptReferenceEventArgs.cs
- Rect3DConverter.cs
- ValuePattern.cs
- PasswordPropertyTextAttribute.cs
- ConnectionManagementElement.cs
- ActiveXHelper.cs
- ReaderWriterLockWrapper.cs
- CachedTypeface.cs
- HttpApplication.cs
- InternalRelationshipCollection.cs
- TreeNode.cs
- XmlSerializerAssemblyAttribute.cs
- UnmanagedHandle.cs
- InputLanguageSource.cs
- WebPartConnectionsCloseVerb.cs
- ListViewTableRow.cs
- sqlmetadatafactory.cs
- ListenUriMode.cs
- InternalSafeNativeMethods.cs
- SoapCodeExporter.cs
- DrawListViewSubItemEventArgs.cs
- Debug.cs
- Nullable.cs
- BoundPropertyEntry.cs
- XPathItem.cs
- TraceContextEventArgs.cs
- ZipArchive.cs
- Int16Storage.cs
- DataGridViewColumnCollectionDialog.cs
- SynchronizedPool.cs
- Win32Exception.cs
- XamlTemplateSerializer.cs
- ElementUtil.cs
- DataColumnMapping.cs
- SignerInfo.cs
- _NtlmClient.cs
- CodeGotoStatement.cs
- Menu.cs
- TypedTableBaseExtensions.cs
- HebrewNumber.cs
- FloaterParaClient.cs
- ImageKeyConverter.cs
- TcpDuplicateContext.cs
- JapaneseCalendar.cs
- RawStylusInput.cs
- AgileSafeNativeMemoryHandle.cs
- MatrixAnimationUsingPath.cs
- CodeBlockBuilder.cs
- _SecureChannel.cs
- ImageMapEventArgs.cs
- ReverseInheritProperty.cs
- FullTextBreakpoint.cs
- XmlTypeAttribute.cs
- Listen.cs
- SpAudioStreamWrapper.cs
- ViewStateModeByIdAttribute.cs
- DataGridCaption.cs
- CLSCompliantAttribute.cs
- FeatureManager.cs
- TraversalRequest.cs
- Authorization.cs
- UserControlFileEditor.cs
- TextViewElement.cs
- TextViewElement.cs
- ResourcePool.cs
- RegexWriter.cs
- SymbolDocumentInfo.cs
- IgnorePropertiesAttribute.cs
- SQLConvert.cs
- ParameterToken.cs
- HtmlInputImage.cs
- ImpersonateTokenRef.cs
- XmlQueryOutput.cs
- DbConnectionPoolCounters.cs
- MenuItem.cs
- DateTimeUtil.cs
- DSASignatureDeformatter.cs
- EntityViewGenerationAttribute.cs
- _CookieModule.cs
- XmlElement.cs
- MobileRedirect.cs
- DeferredRunTextReference.cs
- HandlerBase.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- FixedHighlight.cs
- Effect.cs
- Hashtable.cs