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
- DragStartedEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- FunctionQuery.cs
- LogSwitch.cs
- ClassHandlersStore.cs
- CodeActivityContext.cs
- TextureBrush.cs
- WebPartRestoreVerb.cs
- HttpConfigurationSystem.cs
- DesignerActionItem.cs
- NameValueFileSectionHandler.cs
- StringReader.cs
- ConfigViewGenerator.cs
- EncryptedReference.cs
- HostedElements.cs
- DefaultValueAttribute.cs
- PageContentCollection.cs
- LifetimeServices.cs
- CodeDirectiveCollection.cs
- ObjectSecurity.cs
- SqlTypesSchemaImporter.cs
- LocatorPartList.cs
- DesigntimeLicenseContext.cs
- Rule.cs
- PageParserFilter.cs
- Int32EqualityComparer.cs
- WebPartCatalogCloseVerb.cs
- GlobalEventManager.cs
- AuthenticationConfig.cs
- RemoveStoryboard.cs
- SqlCacheDependencyDatabaseCollection.cs
- SizeFConverter.cs
- XmlDigitalSignatureProcessor.cs
- DrawingImage.cs
- EncryptedData.cs
- OneOfElement.cs
- DisplayInformation.cs
- ContentType.cs
- DuplexChannelFactory.cs
- BooleanConverter.cs
- AdjustableArrowCap.cs
- ToolbarAUtomationPeer.cs
- WebPartManager.cs
- DesignerRegion.cs
- MissingFieldException.cs
- CachedFontFamily.cs
- AsyncResult.cs
- Int64Animation.cs
- SafeFileHandle.cs
- DynamicDocumentPaginator.cs
- AutoScrollHelper.cs
- SmtpReplyReader.cs
- LogicalExpr.cs
- WindowsContainer.cs
- ProtocolViolationException.cs
- CodeStatementCollection.cs
- FormsAuthenticationEventArgs.cs
- OutOfMemoryException.cs
- MessageSecurityVersion.cs
- MsmqInputSessionChannel.cs
- CalloutQueueItem.cs
- TemplatePropertyEntry.cs
- SqlBooleanizer.cs
- SoapFormatterSinks.cs
- FileSystemEventArgs.cs
- FaultHandlingFilter.cs
- BitmapEffectDrawing.cs
- TextElementAutomationPeer.cs
- SamlAuthorizationDecisionStatement.cs
- ConfigUtil.cs
- CustomSignedXml.cs
- CustomPopupPlacement.cs
- ModelItemDictionaryImpl.cs
- Point4DConverter.cs
- AssemblyInfo.cs
- TextPointer.cs
- GroupBox.cs
- XhtmlBasicListAdapter.cs
- ImageField.cs
- EasingKeyFrames.cs
- CodeGenerator.cs
- pingexception.cs
- CheckedListBox.cs
- HtmlTable.cs
- XmlSerializerSection.cs
- FontStyleConverter.cs
- AbstractSvcMapFileLoader.cs
- IncomingWebResponseContext.cs
- BrowserCapabilitiesFactoryBase.cs
- PreservationFileReader.cs
- LinqDataView.cs
- DateTimeFormatInfo.cs
- PropertyPath.cs
- ServiceHttpHandlerFactory.cs
- ExtensibleClassFactory.cs
- Converter.cs
- DiagnosticTrace.cs
- CaseExpr.cs
- ClientScriptManager.cs
- DbProviderConfigurationHandler.cs