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
- ControlEvent.cs
- SupportingTokenParameters.cs
- TextContainerChangeEventArgs.cs
- SapiAttributeParser.cs
- AttributeEmitter.cs
- CollectionViewProxy.cs
- ColorPalette.cs
- ModelService.cs
- Action.cs
- TableAdapterManagerHelper.cs
- BufferedMessageWriter.cs
- AssemblyAttributes.cs
- Form.cs
- WindowsListView.cs
- RetrieveVirtualItemEventArgs.cs
- Divide.cs
- CodeIterationStatement.cs
- ReflectionTypeLoadException.cs
- HyperLinkColumn.cs
- RtfToXamlReader.cs
- BaseParaClient.cs
- AttributeUsageAttribute.cs
- TokenBasedSetEnumerator.cs
- _AcceptOverlappedAsyncResult.cs
- MethodSet.cs
- Timer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- IISMapPath.cs
- StrokeCollection.cs
- MarkedHighlightComponent.cs
- LineUtil.cs
- HostingEnvironmentSection.cs
- EntityRecordInfo.cs
- Thickness.cs
- ErrorInfoXmlDocument.cs
- ProfileModule.cs
- BuildManagerHost.cs
- DataTransferEventArgs.cs
- TabletDevice.cs
- CompositeActivityDesigner.cs
- Propagator.JoinPropagator.cs
- Rijndael.cs
- TdsParserHelperClasses.cs
- SendMessageChannelCache.cs
- AutomationElement.cs
- LayoutDump.cs
- BinaryFormatterWriter.cs
- unsafenativemethodsother.cs
- SQLConvert.cs
- FormViewUpdateEventArgs.cs
- ControlPropertyNameConverter.cs
- TrackingRecord.cs
- PageContentCollection.cs
- WebPartTransformerAttribute.cs
- BmpBitmapEncoder.cs
- __Error.cs
- ScalarConstant.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DataGridrowEditEndingEventArgs.cs
- EventLogger.cs
- EventHandlerService.cs
- WebBrowserDocumentCompletedEventHandler.cs
- CryptoStream.cs
- ConstNode.cs
- TypeDescriptionProvider.cs
- TextParagraphView.cs
- CommentEmitter.cs
- SimpleBitVector32.cs
- Types.cs
- PagesSection.cs
- TileModeValidation.cs
- SerializableAttribute.cs
- UdpSocketReceiveManager.cs
- ChtmlLinkAdapter.cs
- DetailsView.cs
- COM2PropertyDescriptor.cs
- RedirectionProxy.cs
- linebase.cs
- SchemaCollectionCompiler.cs
- SqlHelper.cs
- FacetEnabledSchemaElement.cs
- MsmqReceiveHelper.cs
- TraceData.cs
- validationstate.cs
- DataControlButton.cs
- NumberFunctions.cs
- ObjectPersistData.cs
- BufferedGraphicsContext.cs
- ChannelTokenTypeConverter.cs
- Error.cs
- SkewTransform.cs
- TraceHandler.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- QueryableFilterUserControl.cs
- MasterPageCodeDomTreeGenerator.cs
- CompilerError.cs
- NavigationFailedEventArgs.cs
- KeyValuePair.cs
- DataTableCollection.cs
- ViewGenResults.cs