Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Collections / Generic / KeyValuePair.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationDirectoryMembershipCondition.cs
- QuarticEase.cs
- WpfKnownType.cs
- DataGridViewTopRowAccessibleObject.cs
- AlphabeticalEnumConverter.cs
- GZipDecoder.cs
- WebEvents.cs
- RegexReplacement.cs
- SiteMapNodeItemEventArgs.cs
- SourceFileBuildProvider.cs
- TimeoutException.cs
- SmtpNetworkElement.cs
- ListItem.cs
- OleDbTransaction.cs
- TdsValueSetter.cs
- ClientProxyGenerator.cs
- CompilationUtil.cs
- DataGridViewCell.cs
- PropertyDescriptor.cs
- TriggerCollection.cs
- Ports.cs
- ByteBufferPool.cs
- ViewStateModeByIdAttribute.cs
- RolePrincipal.cs
- TreeViewItemAutomationPeer.cs
- AutoResetEvent.cs
- ListItemCollection.cs
- HttpCacheVaryByContentEncodings.cs
- safelinkcollection.cs
- CustomAttributeFormatException.cs
- PrintDocument.cs
- ListBindingConverter.cs
- DecimalAnimationUsingKeyFrames.cs
- StoreItemCollection.cs
- StandardToolWindows.cs
- FragmentQueryKB.cs
- TableLayoutStyleCollection.cs
- CopyOnWriteList.cs
- ComEventsHelper.cs
- HierarchicalDataTemplate.cs
- PagerSettings.cs
- CollaborationHelperFunctions.cs
- GroupLabel.cs
- Funcletizer.cs
- RelatedEnd.cs
- DataGridViewTopLeftHeaderCell.cs
- PropertyGroupDescription.cs
- HttpGetProtocolReflector.cs
- IsolatedStorageFileStream.cs
- ArrangedElementCollection.cs
- FormViewPagerRow.cs
- TypeDelegator.cs
- BmpBitmapDecoder.cs
- SizeChangedInfo.cs
- ErrorWebPart.cs
- SqlServices.cs
- TableRow.cs
- RequestQueue.cs
- ReadOnlyCollectionBase.cs
- ColorConvertedBitmap.cs
- SQLDecimal.cs
- KeyMatchBuilder.cs
- ObsoleteAttribute.cs
- DataSourceNameHandler.cs
- PartialTrustHelpers.cs
- ContentOperations.cs
- ResourceProviderFactory.cs
- PublisherIdentityPermission.cs
- PageThemeCodeDomTreeGenerator.cs
- RowUpdatingEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- WorkingDirectoryEditor.cs
- Typeface.cs
- clipboard.cs
- CompositionTarget.cs
- ExpressionPrefixAttribute.cs
- XsltCompileContext.cs
- MemberAccessException.cs
- AttributeAction.cs
- Gdiplus.cs
- TrailingSpaceComparer.cs
- ResXFileRef.cs
- DbParameterHelper.cs
- CharUnicodeInfo.cs
- ColumnReorderedEventArgs.cs
- CacheAxisQuery.cs
- ReflectionPermission.cs
- BaseTemplateParser.cs
- COMException.cs
- RMPublishingDialog.cs
- DocumentViewerConstants.cs
- XmlSchemaObjectTable.cs
- BuildProvidersCompiler.cs
- WeakReference.cs
- WaitForChangedResult.cs
- DataPager.cs
- SafeSystemMetrics.cs
- HttpHandlersSection.cs
- ILGenerator.cs
- PrivilegedConfigurationManager.cs