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
- KeyTimeConverter.cs
- IIS7WorkerRequest.cs
- WebReferencesBuildProvider.cs
- TextEditorCharacters.cs
- TreeNodeBindingCollection.cs
- HierarchicalDataBoundControlAdapter.cs
- TCEAdapterGenerator.cs
- QuaternionConverter.cs
- PreservationFileReader.cs
- figurelengthconverter.cs
- SqlConnectionFactory.cs
- HttpVersion.cs
- HttpApplicationFactory.cs
- InvalidPrinterException.cs
- AccessViolationException.cs
- CommentAction.cs
- Component.cs
- PagesSection.cs
- DbConnectionPool.cs
- TreeNodeStyleCollection.cs
- ReferenceConverter.cs
- LOSFormatter.cs
- DbConnectionPoolOptions.cs
- ProxyGenerationError.cs
- BounceEase.cs
- LogicalTreeHelper.cs
- CodeSubDirectory.cs
- ToolBar.cs
- RefType.cs
- MediaSystem.cs
- Asn1IntegerConverter.cs
- TextLineResult.cs
- BamlRecordWriter.cs
- SafeNativeMethods.cs
- CmsUtils.cs
- DataFormats.cs
- ControlAdapter.cs
- SkipStoryboardToFill.cs
- RequestCacheValidator.cs
- ProxyWebPart.cs
- ConstraintStruct.cs
- DataTableMappingCollection.cs
- ErrorWrapper.cs
- TextElementEditingBehaviorAttribute.cs
- KerberosSecurityTokenAuthenticator.cs
- DataGridViewColumnHeaderCell.cs
- SoapProtocolImporter.cs
- IdleTimeoutMonitor.cs
- SmiTypedGetterSetter.cs
- AssemblyBuilder.cs
- BackgroundFormatInfo.cs
- InlineObject.cs
- PtsContext.cs
- ComponentEditorPage.cs
- QueryOperator.cs
- OleDbWrapper.cs
- MinMaxParagraphWidth.cs
- ReflectPropertyDescriptor.cs
- EmptyCollection.cs
- EmptyEnumerable.cs
- CheckedPointers.cs
- _LocalDataStoreMgr.cs
- PointCollectionValueSerializer.cs
- ScriptManagerProxy.cs
- Emitter.cs
- HighContrastHelper.cs
- input.cs
- TransactionManager.cs
- BinaryExpression.cs
- ContextCorrelationInitializer.cs
- TargetPerspective.cs
- AssociationType.cs
- BinHexEncoding.cs
- UITypeEditor.cs
- DbConnectionClosed.cs
- XmlDataSourceView.cs
- MethodRental.cs
- XmlSignatureProperties.cs
- RIPEMD160Managed.cs
- DeclarativeExpressionConditionDeclaration.cs
- sapiproxy.cs
- UnsafeNativeMethodsCLR.cs
- DataSvcMapFileSerializer.cs
- documentsequencetextpointer.cs
- HwndKeyboardInputProvider.cs
- XmlAutoDetectWriter.cs
- LineProperties.cs
- MD5CryptoServiceProvider.cs
- CfgSemanticTag.cs
- Timer.cs
- TouchesOverProperty.cs
- ProtectedConfigurationSection.cs
- GlobalEventManager.cs
- CompositeCollection.cs
- AdCreatedEventArgs.cs
- DrawingGroup.cs
- CryptoApi.cs
- HtmlProps.cs
- StateMachine.cs
- DateRangeEvent.cs