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
- KeysConverter.cs
- NestedContainer.cs
- JournalEntryStack.cs
- DBCommandBuilder.cs
- CodeNamespace.cs
- ListView.cs
- SystemTcpStatistics.cs
- ToolStripActionList.cs
- BuildResultCache.cs
- NullReferenceException.cs
- Point4D.cs
- SrgsElementList.cs
- AssertSection.cs
- HybridWebProxyFinder.cs
- ResourcePool.cs
- ProcessMessagesAsyncResult.cs
- DbConnectionPool.cs
- TriState.cs
- DispatcherProcessingDisabled.cs
- QueryCorrelationInitializer.cs
- IntSecurity.cs
- PermissionSet.cs
- CatalogZone.cs
- PolyQuadraticBezierSegment.cs
- Pair.cs
- Brush.cs
- WebScriptMetadataFormatter.cs
- HttpServerVarsCollection.cs
- ButtonBase.cs
- DataGridViewBindingCompleteEventArgs.cs
- TextSegment.cs
- SchemaDeclBase.cs
- DataServiceExpressionVisitor.cs
- TitleStyle.cs
- TextSpanModifier.cs
- DefaultObjectSerializer.cs
- DataSetMappper.cs
- Utility.cs
- DynamicRendererThreadManager.cs
- CTreeGenerator.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- ControlCachePolicy.cs
- SolidColorBrush.cs
- OperationFormatUse.cs
- ProcessInputEventArgs.cs
- InkPresenterAutomationPeer.cs
- CompilerGlobalScopeAttribute.cs
- dsa.cs
- MessageSmuggler.cs
- OLEDB_Enum.cs
- GridItemProviderWrapper.cs
- Viewport2DVisual3D.cs
- bidPrivateBase.cs
- ReadOnlyDataSource.cs
- KeyBinding.cs
- CustomErrorsSection.cs
- UserControlParser.cs
- TextEditorContextMenu.cs
- NullableDecimalAverageAggregationOperator.cs
- MemberRelationshipService.cs
- TextBlockAutomationPeer.cs
- AddInPipelineAttributes.cs
- Profiler.cs
- WebBodyFormatMessageProperty.cs
- NetStream.cs
- Stream.cs
- FixedStringLookup.cs
- ReversePositionQuery.cs
- TextServicesHost.cs
- DesignTimeVisibleAttribute.cs
- SpeakCompletedEventArgs.cs
- XmlAttributeAttribute.cs
- FileSystemEventArgs.cs
- Site.cs
- FtpRequestCacheValidator.cs
- FrameworkPropertyMetadata.cs
- MenuItemBindingCollection.cs
- HtmlElement.cs
- DataStreamFromComStream.cs
- StylusTip.cs
- AtomServiceDocumentSerializer.cs
- ProgressBar.cs
- TableLayoutStyle.cs
- StructuredTypeInfo.cs
- SqlCachedBuffer.cs
- MessageVersion.cs
- FileClassifier.cs
- Symbol.cs
- HtmlMobileTextWriter.cs
- TextRunTypographyProperties.cs
- ResourceWriter.cs
- Soap.cs
- TemplateControlBuildProvider.cs
- BuildTopDownAttribute.cs
- SystemTcpConnection.cs
- dataprotectionpermissionattribute.cs
- StoreItemCollection.Loader.cs
- EditCommandColumn.cs
- Run.cs
- WorkflowDefinitionDispenser.cs