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
- GACIdentityPermission.cs
- PipelineModuleStepContainer.cs
- safePerfProviderHandle.cs
- LineGeometry.cs
- GetWinFXPath.cs
- autovalidator.cs
- SQLRoleProvider.cs
- webbrowsersite.cs
- VectorCollectionValueSerializer.cs
- CharKeyFrameCollection.cs
- MetadataFile.cs
- SafeMILHandle.cs
- DynamicFilter.cs
- OLEDB_Enum.cs
- Pen.cs
- ListViewCommandEventArgs.cs
- safesecurityhelperavalon.cs
- SponsorHelper.cs
- GridItem.cs
- PropertyOverridesTypeEditor.cs
- RuntimeConfigLKG.cs
- HtmlContainerControl.cs
- SpecialFolderEnumConverter.cs
- Regex.cs
- InternalResources.cs
- TemplateBuilder.cs
- oledbmetadatacolumnnames.cs
- XsltSettings.cs
- Button.cs
- QueryProcessor.cs
- AssertSection.cs
- MobileTemplatedControlDesigner.cs
- ClientCultureInfo.cs
- SafeNativeMethods.cs
- ProfileSettingsCollection.cs
- VersionPair.cs
- XmlSchemaSimpleContent.cs
- HttpRequest.cs
- StopStoryboard.cs
- RandomDelaySendsAsyncResult.cs
- MetafileHeaderWmf.cs
- WebPartMenuStyle.cs
- HighContrastHelper.cs
- ResourceAssociationType.cs
- ComIntegrationManifestGenerator.cs
- SqlReferenceCollection.cs
- cookiecontainer.cs
- DataContract.cs
- Timeline.cs
- IsolatedStorageFileStream.cs
- DependentList.cs
- Subset.cs
- HttpCacheVaryByContentEncodings.cs
- RuntimeHandles.cs
- SqlTransaction.cs
- CapabilitiesState.cs
- XmlSchemaParticle.cs
- Frame.cs
- RuntimeResourceSet.cs
- InsufficientMemoryException.cs
- HwndSourceParameters.cs
- MetadataFile.cs
- WindowsToolbarItemAsMenuItem.cs
- LiteralControl.cs
- TypeRestriction.cs
- SqlNotificationRequest.cs
- ServiceBehaviorElement.cs
- EventlogProvider.cs
- NonSerializedAttribute.cs
- MaskedTextProvider.cs
- Argument.cs
- IApplicationTrustManager.cs
- WindowsListBox.cs
- Path.cs
- _PooledStream.cs
- Property.cs
- ButtonStandardAdapter.cs
- RowToParametersTransformer.cs
- AsyncCompletedEventArgs.cs
- OrCondition.cs
- BaseDataList.cs
- TypeInformation.cs
- AffineTransform3D.cs
- RoleManagerSection.cs
- TextTreeUndo.cs
- RightsManagementProvider.cs
- WhitespaceReader.cs
- WebPartVerb.cs
- BindingOperations.cs
- SocketInformation.cs
- querybuilder.cs
- ConfigurationPropertyAttribute.cs
- XmlSchemaSubstitutionGroup.cs
- TextBoxView.cs
- TraceUtility.cs
- ClientEventManager.cs
- TextCompositionManager.cs
- Pair.cs
- CheckPair.cs
- XPathNodeIterator.cs