Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataStore.cs
- StringExpressionSet.cs
- _PooledStream.cs
- ExpandedWrapper.cs
- WebPartConnectionsDisconnectVerb.cs
- BackgroundWorker.cs
- LogLogRecordHeader.cs
- SqlUtils.cs
- QilReference.cs
- typedescriptorpermissionattribute.cs
- SiteMapNodeItemEventArgs.cs
- BuildTopDownAttribute.cs
- VBIdentifierDesigner.xaml.cs
- Authorization.cs
- PresentationTraceSources.cs
- SafeRegistryHandle.cs
- ToolTipAutomationPeer.cs
- oledbconnectionstring.cs
- DesignRelation.cs
- DataViewManager.cs
- FigureHelper.cs
- URLAttribute.cs
- MultiSelectRootGridEntry.cs
- PolicyStatement.cs
- HtmlInputButton.cs
- XmlSchemaFacet.cs
- StateDesigner.cs
- XmlHierarchicalDataSourceView.cs
- TypeGeneratedEventArgs.cs
- FloaterBaseParagraph.cs
- Cursor.cs
- SiteMap.cs
- HtmlWindowCollection.cs
- ObjectDisposedException.cs
- UniformGrid.cs
- JavaScriptObjectDeserializer.cs
- FormsAuthenticationTicket.cs
- XamlVector3DCollectionSerializer.cs
- BaseTemplateBuildProvider.cs
- StaticFileHandler.cs
- WindowsFormsLinkLabel.cs
- recordstatefactory.cs
- CommonDialog.cs
- RoutedEventConverter.cs
- SystemInfo.cs
- IdentifierElement.cs
- SchemaDeclBase.cs
- SvcMapFile.cs
- LinkedDataMemberFieldEditor.cs
- NativeMethods.cs
- DataKeyCollection.cs
- NotifyIcon.cs
- ClientFormsAuthenticationMembershipProvider.cs
- TimeSpanValidator.cs
- Int64Storage.cs
- ScrollItemProviderWrapper.cs
- SimpleMailWebEventProvider.cs
- FileDetails.cs
- PtsCache.cs
- ThrowHelper.cs
- Tablet.cs
- KeyboardDevice.cs
- LoadRetryConstantStrategy.cs
- SQLMembershipProvider.cs
- FirstMatchCodeGroup.cs
- HttpListenerPrefixCollection.cs
- TextTreeExtractElementUndoUnit.cs
- Adorner.cs
- TypedRowHandler.cs
- InvalidProgramException.cs
- EncoderNLS.cs
- XmlSchemaException.cs
- StoreContentChangedEventArgs.cs
- MbpInfo.cs
- EndpointIdentity.cs
- NativeMethods.cs
- PathTooLongException.cs
- BindingContext.cs
- AttributeEmitter.cs
- OleDbPermission.cs
- ConnectionStringSettingsCollection.cs
- EmbossBitmapEffect.cs
- ActivitySurrogate.cs
- TrackingStringDictionary.cs
- ReachBasicContext.cs
- FormatSettings.cs
- LinkConverter.cs
- TargetException.cs
- ProviderSettings.cs
- ContourSegment.cs
- SafeRegistryHandle.cs
- TreeViewItemAutomationPeer.cs
- FrameworkReadOnlyPropertyMetadata.cs
- indexingfiltermarshaler.cs
- SmtpFailedRecipientException.cs
- cryptoapiTransform.cs
- DataGridDesigner.cs
- ClientUtils.cs
- TreeView.cs
- WindowsListViewItem.cs