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
- TreeViewEvent.cs
- XmlCustomFormatter.cs
- PropertyCollection.cs
- DownloadProgressEventArgs.cs
- QilFactory.cs
- DispatcherProcessingDisabled.cs
- Base64Stream.cs
- Splitter.cs
- MiniConstructorInfo.cs
- DispatcherEventArgs.cs
- X509ImageLogo.cs
- ResizeGrip.cs
- FrameworkContentElement.cs
- Font.cs
- UxThemeWrapper.cs
- ComplusTypeValidator.cs
- ListControl.cs
- DbConnectionPool.cs
- WebConfigurationFileMap.cs
- MessageEncoder.cs
- InvalidOperationException.cs
- ObjectItemNoOpAssemblyLoader.cs
- GridViewUpdateEventArgs.cs
- QueryOptionExpression.cs
- XmlIlVisitor.cs
- AuthenticationModuleElementCollection.cs
- DbParameterHelper.cs
- MemoryFailPoint.cs
- NameHandler.cs
- KeyboardEventArgs.cs
- Matrix3DValueSerializer.cs
- BitmapEffectState.cs
- Brush.cs
- SystemInformation.cs
- ConfigXmlText.cs
- DateTimeSerializationSection.cs
- TypeUnloadedException.cs
- UIElementIsland.cs
- Identity.cs
- List.cs
- ExpressionTable.cs
- GenericEnumerator.cs
- WindowsTokenRoleProvider.cs
- RuntimeIdentifierPropertyAttribute.cs
- NotifyParentPropertyAttribute.cs
- QuotedPairReader.cs
- ScriptControlManager.cs
- XmlSignificantWhitespace.cs
- ImageSourceConverter.cs
- QueryContext.cs
- IProvider.cs
- GenericEnumerator.cs
- RemotingException.cs
- SqlConnectionHelper.cs
- SqlDataSourceSelectingEventArgs.cs
- SoapProcessingBehavior.cs
- FixUpCollection.cs
- CodeLinePragma.cs
- WebPartMinimizeVerb.cs
- SafePEFileHandle.cs
- ServiceMetadataBehavior.cs
- RefExpr.cs
- FontStyleConverter.cs
- Transform3DCollection.cs
- CapabilitiesSection.cs
- MasterPageParser.cs
- XPathNavigator.cs
- BrowsableAttribute.cs
- SqlDataSourceCache.cs
- SmiRecordBuffer.cs
- EpmCustomContentSerializer.cs
- XmlILModule.cs
- TrackingMemoryStream.cs
- SrgsDocumentParser.cs
- UpDownBase.cs
- SinglePageViewer.cs
- Brush.cs
- PageSetupDialog.cs
- XmlSchemaObjectTable.cs
- AsyncCodeActivityContext.cs
- ObjectAnimationUsingKeyFrames.cs
- FunctionOverloadResolver.cs
- Mapping.cs
- DataServiceKeyAttribute.cs
- SqlRemoveConstantOrderBy.cs
- SchemaImporter.cs
- _RequestLifetimeSetter.cs
- CookieProtection.cs
- EncodingStreamWrapper.cs
- FixedSOMFixedBlock.cs
- SchemaComplexType.cs
- DataGridCellEditEndingEventArgs.cs
- ActivityLocationReferenceEnvironment.cs
- ChameleonKey.cs
- SqlBulkCopyColumnMapping.cs
- ReferencedType.cs
- SliderAutomationPeer.cs
- CacheSection.cs
- MinMaxParagraphWidth.cs
- SignatureToken.cs