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
- GAC.cs
- Transform3DGroup.cs
- COM2PictureConverter.cs
- CancellationState.cs
- CodeTypeReferenceCollection.cs
- RequestNavigateEventArgs.cs
- ContextMenu.cs
- OleDbMetaDataFactory.cs
- CookieParameter.cs
- ParsedRoute.cs
- UIElementHelper.cs
- XmlLinkedNode.cs
- XmlObjectSerializerWriteContextComplex.cs
- SafeThreadHandle.cs
- ItemCheckEvent.cs
- GatewayDefinition.cs
- XmlBaseReader.cs
- FontFamily.cs
- TouchEventArgs.cs
- XmlSerializerVersionAttribute.cs
- WebPartConnection.cs
- SystemIcons.cs
- ToolStrip.cs
- SafeSystemMetrics.cs
- EventListener.cs
- precedingsibling.cs
- XmlSecureResolver.cs
- ConsumerConnectionPointCollection.cs
- PerfCounters.cs
- DataGrid.cs
- KeyValueConfigurationElement.cs
- WindowsContainer.cs
- Verify.cs
- VarRemapper.cs
- AlgoModule.cs
- linebase.cs
- ColorConvertedBitmap.cs
- MimePart.cs
- Soap.cs
- DisableDpiAwarenessAttribute.cs
- XmlWhitespace.cs
- Queue.cs
- DesignerDataParameter.cs
- MarshalByValueComponent.cs
- AccessDataSourceView.cs
- ThreadExceptionDialog.cs
- Baml2006KnownTypes.cs
- DependsOnAttribute.cs
- AdCreatedEventArgs.cs
- NumberSubstitution.cs
- MaskedTextProvider.cs
- SafeTimerHandle.cs
- FontSizeConverter.cs
- ViewService.cs
- NotifyIcon.cs
- _ScatterGatherBuffers.cs
- DesignerAdapterAttribute.cs
- TreeNodeConverter.cs
- PersonalizableTypeEntry.cs
- RegexGroup.cs
- _ConnectStream.cs
- ExpressionEditorAttribute.cs
- Triangle.cs
- LineVisual.cs
- TemplatePagerField.cs
- XPathBinder.cs
- FolderBrowserDialogDesigner.cs
- Transform3D.cs
- ConditionalAttribute.cs
- COM2AboutBoxPropertyDescriptor.cs
- InteropBitmapSource.cs
- _LoggingObject.cs
- FlowDocumentPaginator.cs
- altserialization.cs
- DataGridViewColumnCollectionDialog.cs
- CharAnimationBase.cs
- QuadraticBezierSegment.cs
- ServiceHostFactory.cs
- AutomationPatternInfo.cs
- CompiledXpathExpr.cs
- RootCodeDomSerializer.cs
- OLEDB_Util.cs
- DataGridViewRowHeaderCell.cs
- DataGridViewCellEventArgs.cs
- RepeatEnumerable.cs
- ComboBox.cs
- QueryParameter.cs
- RelatedPropertyManager.cs
- storepermissionattribute.cs
- HwndPanningFeedback.cs
- elementinformation.cs
- SerializationSectionGroup.cs
- ButtonBase.cs
- Bezier.cs
- SrgsRulesCollection.cs
- CodeCompiler.cs
- RegexMatchCollection.cs
- RemoveStoryboard.cs
- PropertyMap.cs
- DataControlCommands.cs