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
- PeerTransportBindingElement.cs
- BrushConverter.cs
- SystemPens.cs
- UTF8Encoding.cs
- Rules.cs
- QuaternionRotation3D.cs
- PagerSettings.cs
- BitmapEffectCollection.cs
- BaseTemplateParser.cs
- _AutoWebProxyScriptHelper.cs
- FormCollection.cs
- FontStretches.cs
- ErrorFormatterPage.cs
- ElementAction.cs
- RemotingServices.cs
- TreeNodeMouseHoverEvent.cs
- Root.cs
- IIS7UserPrincipal.cs
- StickyNoteContentControl.cs
- InputLanguage.cs
- QueryIntervalOp.cs
- SamlSecurityToken.cs
- StringWriter.cs
- CustomTypeDescriptor.cs
- Pen.cs
- UIElement.cs
- cache.cs
- PagesChangedEventArgs.cs
- WorkingDirectoryEditor.cs
- invalidudtexception.cs
- RegexFCD.cs
- JoinGraph.cs
- ClientRolePrincipal.cs
- SelectingProviderEventArgs.cs
- EncoderReplacementFallback.cs
- DesignerVerb.cs
- ConnectionManagementElementCollection.cs
- ClassGenerator.cs
- InputLanguage.cs
- DataGridPagerStyle.cs
- WebBrowser.cs
- DataSetMappper.cs
- ReadContentAsBinaryHelper.cs
- HTTPNotFoundHandler.cs
- DataPager.cs
- RelationshipSet.cs
- MediaTimeline.cs
- CodeGen.cs
- RepeatEnumerable.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- ToolStripEditorManager.cs
- SqlTriggerAttribute.cs
- DataControlPagerLinkButton.cs
- AmbientValueAttribute.cs
- PaintValueEventArgs.cs
- NamedPipeDuplicateContext.cs
- Material.cs
- ScrollBarRenderer.cs
- HitTestParameters.cs
- SimplePropertyEntry.cs
- DictionaryCustomTypeDescriptor.cs
- PreviewPageInfo.cs
- OletxCommittableTransaction.cs
- StylusDevice.cs
- StoreContentChangedEventArgs.cs
- CalendarDay.cs
- ActivityInfo.cs
- SplitterCancelEvent.cs
- GridViewColumnCollectionChangedEventArgs.cs
- DownloadProgressEventArgs.cs
- UnsettableComboBox.cs
- VerificationException.cs
- ProgressBar.cs
- FilteredAttributeCollection.cs
- COM2PropertyDescriptor.cs
- WMIInterop.cs
- WebPartDescriptionCollection.cs
- ToolBar.cs
- CodeArrayIndexerExpression.cs
- ChildTable.cs
- StorageAssociationSetMapping.cs
- XmlEncodedRawTextWriter.cs
- SqlConnection.cs
- StatusBarDrawItemEvent.cs
- SaveFileDialog.cs
- DelegatedStream.cs
- webbrowsersite.cs
- CodeSubDirectoriesCollection.cs
- EventSetter.cs
- Buffer.cs
- DeferredReference.cs
- Rect3DConverter.cs
- WindowsFormsSynchronizationContext.cs
- DataControlButton.cs
- _LoggingObject.cs
- WebScriptMetadataMessageEncoderFactory.cs
- uribuilder.cs
- TrackBar.cs
- EventLogQuery.cs
- EncryptedPackageFilter.cs