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
- GetPageCompletedEventArgs.cs
- StrokeNodeData.cs
- ErrorRuntimeConfig.cs
- TTSEvent.cs
- AssociationTypeEmitter.cs
- IResourceProvider.cs
- BlurEffect.cs
- BufferManager.cs
- TypedDatasetGenerator.cs
- AssociationSetMetadata.cs
- SevenBitStream.cs
- Condition.cs
- SortKey.cs
- BrowserTree.cs
- WsrmTraceRecord.cs
- ListBoxAutomationPeer.cs
- SelectionHighlightInfo.cs
- SQLInt32.cs
- IdentitySection.cs
- ThemeInfoAttribute.cs
- Translator.cs
- UInt16.cs
- RuleSettings.cs
- XmlSchemaImporter.cs
- Unit.cs
- KeySpline.cs
- InvalidPropValue.cs
- DescendantOverDescendantQuery.cs
- WebResponse.cs
- CompositeFontInfo.cs
- SeparatorAutomationPeer.cs
- PrintingPermissionAttribute.cs
- WindowsListViewGroupSubsetLink.cs
- WebControlParameterProxy.cs
- ComboBoxItem.cs
- XmlCompatibilityReader.cs
- CursorInteropHelper.cs
- ScopedKnownTypes.cs
- DiscoveryServiceExtension.cs
- FormatterServices.cs
- ParagraphResult.cs
- TemplatedMailWebEventProvider.cs
- Point.cs
- HwndSourceKeyboardInputSite.cs
- Html32TextWriter.cs
- WebPartExportVerb.cs
- AppDomainManager.cs
- CurrentChangedEventManager.cs
- XmlEncoding.cs
- DayRenderEvent.cs
- GenericTextProperties.cs
- WindowsScrollBar.cs
- SQLResource.cs
- CodeGotoStatement.cs
- TakeQueryOptionExpression.cs
- UIElementAutomationPeer.cs
- Panel.cs
- SQLByte.cs
- ViewEventArgs.cs
- XmlSchemaParticle.cs
- ReadWriteSpinLock.cs
- Border.cs
- WorkflowFileItem.cs
- CollaborationHelperFunctions.cs
- DrawingBrush.cs
- Dynamic.cs
- DataContext.cs
- DockPattern.cs
- DataGridClipboardHelper.cs
- XPathDocument.cs
- SingletonConnectionReader.cs
- CompilationLock.cs
- CqlLexerHelpers.cs
- PrtTicket_Base.cs
- XsdValidatingReader.cs
- FileDialogPermission.cs
- DockAndAnchorLayout.cs
- RegexCapture.cs
- EpmContentDeSerializerBase.cs
- _SingleItemRequestCache.cs
- NavigationProperty.cs
- ConfigurationStrings.cs
- SystemWebCachingSectionGroup.cs
- ObjectSet.cs
- EventToken.cs
- InvokeHandlers.cs
- BaseCAMarshaler.cs
- XmlNamespaceDeclarationsAttribute.cs
- _CookieModule.cs
- PolicyImporterElementCollection.cs
- TimeStampChecker.cs
- IndexedString.cs
- IDQuery.cs
- DBDataPermissionAttribute.cs
- ListBoxItemAutomationPeer.cs
- PostBackOptions.cs
- DirectoryRootQuery.cs
- RelationshipType.cs
- RepeatButton.cs
- InputLanguage.cs