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
- AnimationException.cs
- XmlSchemaCompilationSettings.cs
- SslStream.cs
- HtmlMeta.cs
- InvokePattern.cs
- DataControlFieldTypeEditor.cs
- BuildResult.cs
- AssertSection.cs
- RelationshipNavigation.cs
- LOSFormatter.cs
- AnonymousIdentificationSection.cs
- Model3DCollection.cs
- InfocardChannelParameter.cs
- PageThemeParser.cs
- CodeThrowExceptionStatement.cs
- UpdateProgress.cs
- WindowsAltTab.cs
- EndpointConfigContainer.cs
- RepeaterCommandEventArgs.cs
- ValidationErrorInfo.cs
- ProcessProtocolHandler.cs
- BinaryFormatterWriter.cs
- HwndMouseInputProvider.cs
- RepeaterItemEventArgs.cs
- ValidationError.cs
- PrimitiveType.cs
- PointValueSerializer.cs
- HtmlControlAdapter.cs
- XsltInput.cs
- X509Certificate.cs
- SmiTypedGetterSetter.cs
- ExclusiveHandle.cs
- TrustLevel.cs
- SqlDataReaderSmi.cs
- basemetadatamappingvisitor.cs
- Binding.cs
- WebEventCodes.cs
- DrawingState.cs
- WorkflowServiceHostFactory.cs
- LocalFileSettingsProvider.cs
- IISUnsafeMethods.cs
- StringDictionary.cs
- ScriptModule.cs
- ObjectFullSpanRewriter.cs
- FormCollection.cs
- Int32Rect.cs
- WebSysDisplayNameAttribute.cs
- MarkupProperty.cs
- HostUtils.cs
- UInt32Storage.cs
- DictionaryTraceRecord.cs
- ImageUrlEditor.cs
- _RegBlobWebProxyDataBuilder.cs
- RegisteredHiddenField.cs
- TableChangeProcessor.cs
- QueryGenerator.cs
- CqlParserHelpers.cs
- Compiler.cs
- StringDictionaryCodeDomSerializer.cs
- MobileFormsAuthentication.cs
- QueryPageSettingsEventArgs.cs
- ConfigurationPropertyCollection.cs
- GetIndexBinder.cs
- RandomNumberGenerator.cs
- RedistVersionInfo.cs
- SmiEventStream.cs
- SourceFileInfo.cs
- FunctionQuery.cs
- ExtractorMetadata.cs
- WebPartUserCapability.cs
- XmlSchemaIdentityConstraint.cs
- EnumValidator.cs
- JsonCollectionDataContract.cs
- SQLDateTime.cs
- ChannelManager.cs
- XPathParser.cs
- DataGridState.cs
- MemberDescriptor.cs
- LinkLabelLinkClickedEvent.cs
- LocalizableResourceBuilder.cs
- BindingList.cs
- ManagedFilter.cs
- CacheModeValueSerializer.cs
- BuildResult.cs
- ConvertEvent.cs
- GeneralTransform3DTo2DTo3D.cs
- Point3DConverter.cs
- CellLabel.cs
- EventLogRecord.cs
- ExtendedPropertyCollection.cs
- BamlRecordReader.cs
- SelectionHighlightInfo.cs
- CollectionViewGroup.cs
- SerializationAttributes.cs
- PathFigureCollection.cs
- EditorZoneBase.cs
- DetailsViewRowCollection.cs
- WindowVisualStateTracker.cs
- MsmqIntegrationBinding.cs
- NegotiationTokenAuthenticatorState.cs