Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Collections / Generic / KeyValuePair.cs / 1 / KeyValuePair.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Interface: KeyValuePair ** ** ** Purpose: Generic key-value pair for dictionary enumerators. ** ** ===========================================================*/ namespace System.Collections.Generic { using System; using System.Text; // A KeyValuePair holds a key and a value from a dictionary. // It is returned by IDictionaryEnumerator::GetEntry(). [Serializable()] public struct KeyValuePair{ private TKey key; private TValue value; public KeyValuePair(TKey key, TValue value) { this.key = key; this.value = value; } public TKey Key { get { return key; } } public TValue Value { get { return value; } } public override string ToString() { StringBuilder s = new StringBuilder(); s.Append('['); if( Key != null) { s.Append(Key.ToString()); } s.Append(", "); if( Value != null) { s.Append(Value.ToString()); } s.Append(']'); return s.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Interface: KeyValuePair ** ** ** Purpose: Generic key-value pair for dictionary enumerators. ** ** ===========================================================*/ namespace System.Collections.Generic { using System; using System.Text; // A KeyValuePair holds a key and a value from a dictionary. // It is returned by IDictionaryEnumerator::GetEntry(). [Serializable()] public struct KeyValuePair { private TKey key; private TValue value; public KeyValuePair(TKey key, TValue value) { this.key = key; this.value = value; } public TKey Key { get { return key; } } public TValue Value { get { return value; } } public override string ToString() { StringBuilder s = new StringBuilder(); s.Append('['); if( Key != null) { s.Append(Key.ToString()); } s.Append(", "); if( Value != null) { s.Append(Value.ToString()); } s.Append(']'); return s.ToString(); } } } // 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
- CategoryGridEntry.cs
- ApplicationTrust.cs
- BooleanStorage.cs
- DeploymentSectionCache.cs
- ColorKeyFrameCollection.cs
- IncrementalHitTester.cs
- SiteMapProvider.cs
- XPathNodeList.cs
- OptimizedTemplateContent.cs
- UniqueIdentifierService.cs
- EasingKeyFrames.cs
- ImageCodecInfo.cs
- MobileControlsSectionHandler.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ViewKeyConstraint.cs
- ForceCopyBuildProvider.cs
- KeyInterop.cs
- GACMembershipCondition.cs
- EventWaitHandleSecurity.cs
- bindurihelper.cs
- _AutoWebProxyScriptHelper.cs
- Memoizer.cs
- ComIntegrationManifestGenerator.cs
- NullableBoolConverter.cs
- EmptyReadOnlyDictionaryInternal.cs
- UnicastIPAddressInformationCollection.cs
- WebScriptMetadataMessageEncoderFactory.cs
- VectorAnimationUsingKeyFrames.cs
- SiteMapPath.cs
- VariableDesigner.xaml.cs
- AdornedElementPlaceholder.cs
- DbSourceParameterCollection.cs
- GridViewUpdateEventArgs.cs
- ToolBarButton.cs
- JavaScriptObjectDeserializer.cs
- DecimalAnimation.cs
- UniqueIdentifierService.cs
- StorageAssociationTypeMapping.cs
- ConnectionPoint.cs
- WebServiceHandlerFactory.cs
- DataBindEngine.cs
- PerformanceCounterPermissionEntry.cs
- ConnectionStringsSection.cs
- RelationshipManager.cs
- HttpFileCollection.cs
- URLString.cs
- DescendantQuery.cs
- XmlDataCollection.cs
- DataGridRelationshipRow.cs
- WebPartZoneBase.cs
- QuaternionAnimationBase.cs
- Environment.cs
- OrthographicCamera.cs
- NativeMethods.cs
- WindowsToolbarAsMenu.cs
- XmlLanguage.cs
- TagNameToTypeMapper.cs
- SchemaMapping.cs
- Margins.cs
- StaticResourceExtension.cs
- BuildProvidersCompiler.cs
- ConfigurationManagerInternalFactory.cs
- SystemNetHelpers.cs
- SqlMethodCallConverter.cs
- Point3DConverter.cs
- CreateDataSourceDialog.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- BooleanFunctions.cs
- CollectionChangeEventArgs.cs
- SqlUtils.cs
- XsdCachingReader.cs
- MenuItemBinding.cs
- RealizationContext.cs
- ScriptingProfileServiceSection.cs
- MonikerSyntaxException.cs
- RoleManagerSection.cs
- XamlFigureLengthSerializer.cs
- TabPanel.cs
- ChtmlTextWriter.cs
- HtmlInputFile.cs
- Configuration.cs
- GradientBrush.cs
- XPathSelectionIterator.cs
- OracleParameterBinding.cs
- PenLineCapValidation.cs
- SrgsElementFactoryCompiler.cs
- FormViewUpdateEventArgs.cs
- NonVisualControlAttribute.cs
- TypeConverterAttribute.cs
- ExpressionBuilder.cs
- MetafileHeaderWmf.cs
- SoapExtensionReflector.cs
- XmlMemberMapping.cs
- DataDocumentXPathNavigator.cs
- _BasicClient.cs
- Ops.cs
- HtmlForm.cs
- CfgParser.cs
- PtsPage.cs
- FileAuthorizationModule.cs