Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Collections / Generic / KeyValuePair.cs / 2 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProjectionRewriter.cs
- Slider.cs
- TimestampInformation.cs
- KeyNotFoundException.cs
- ButtonFlatAdapter.cs
- HttpInputStream.cs
- StorageAssociationSetMapping.cs
- PersonalizableTypeEntry.cs
- UseAttributeSetsAction.cs
- CodeMemberProperty.cs
- CultureSpecificCharacterBufferRange.cs
- WebControlAdapter.cs
- DetailsViewActionList.cs
- RequestDescription.cs
- MenuItemCollection.cs
- SafeUserTokenHandle.cs
- RootBrowserWindowProxy.cs
- AvtEvent.cs
- CompressEmulationStream.cs
- BindingMemberInfo.cs
- SQLDecimal.cs
- _IPv4Address.cs
- EdmFunctionAttribute.cs
- RequestQueryParser.cs
- Win32.cs
- StyleBamlRecordReader.cs
- ConsumerConnectionPoint.cs
- ObjectAnimationBase.cs
- AttributeCollection.cs
- WrapPanel.cs
- ResourceSet.cs
- BinaryKeyIdentifierClause.cs
- ReceiveSecurityHeaderEntry.cs
- isolationinterop.cs
- CompiledELinqQueryState.cs
- HwndSourceKeyboardInputSite.cs
- PenThreadWorker.cs
- PageOutputColor.cs
- UserMapPath.cs
- TextServicesCompartment.cs
- AnnotationMap.cs
- AutomationPatternInfo.cs
- JoinGraph.cs
- AuthorizationRule.cs
- DiagnosticTrace.cs
- coordinator.cs
- QuaternionKeyFrameCollection.cs
- MarginsConverter.cs
- shaper.cs
- DataServiceRequestException.cs
- IdnMapping.cs
- BuildProviderAppliesToAttribute.cs
- WhitespaceRuleReader.cs
- ObjectQueryExecutionPlan.cs
- FacetChecker.cs
- ClientSettings.cs
- FromReply.cs
- WebPartRestoreVerb.cs
- DecimalSumAggregationOperator.cs
- RoutedEventValueSerializer.cs
- HtmlContainerControl.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- OleDbConnectionInternal.cs
- PEFileEvidenceFactory.cs
- ThicknessAnimationUsingKeyFrames.cs
- ForEachAction.cs
- RegexWriter.cs
- StickyNoteAnnotations.cs
- Baml2006ReaderFrame.cs
- GeneralTransform2DTo3DTo2D.cs
- ComponentCommands.cs
- XmlBaseReader.cs
- MenuItem.cs
- Propagator.ExtentPlaceholderCreator.cs
- MenuEventArgs.cs
- ServiceModelDictionary.cs
- DataKeyCollection.cs
- WizardStepCollectionEditor.cs
- XsltLibrary.cs
- FrameworkRichTextComposition.cs
- PrivateFontCollection.cs
- cookiecontainer.cs
- ResourceDescriptionAttribute.cs
- ItemCheckedEvent.cs
- SectionInput.cs
- ValueType.cs
- FeatureSupport.cs
- GcSettings.cs
- PropertyGridCommands.cs
- SaveFileDialog.cs
- SqlXml.cs
- LoadMessageLogger.cs
- ListItemsCollectionEditor.cs
- StoreAnnotationsMap.cs
- Point3DConverter.cs
- Update.cs
- Empty.cs
- propertyentry.cs
- PointLight.cs
- NativeCompoundFileAPIs.cs