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
- PreloadedPackages.cs
- DataGridAddNewRow.cs
- TextSegment.cs
- UserPreferenceChangedEventArgs.cs
- ProxyWebPartManager.cs
- NavigationFailedEventArgs.cs
- TreeViewItemAutomationPeer.cs
- PropertyExpression.cs
- ConnectorMovedEventArgs.cs
- PeerFlooder.cs
- HotCommands.cs
- CalendarKeyboardHelper.cs
- FormatConvertedBitmap.cs
- WebConfigurationHostFileChange.cs
- AuthenticatedStream.cs
- Propagator.JoinPropagator.cs
- XhtmlBasicTextBoxAdapter.cs
- MediaPlayerState.cs
- XmlImplementation.cs
- bindurihelper.cs
- TableCell.cs
- RawTextInputReport.cs
- DataDocumentXPathNavigator.cs
- AlgoModule.cs
- ProgressBar.cs
- XmlReflectionImporter.cs
- PackUriHelper.cs
- SelectionEditingBehavior.cs
- TraceSection.cs
- DesignerCategoryAttribute.cs
- TreeNodeCollection.cs
- Exception.cs
- Dynamic.cs
- SystemFonts.cs
- DynamicObjectAccessor.cs
- XmlDataContract.cs
- ToolboxComponentsCreatingEventArgs.cs
- __TransparentProxy.cs
- LinqDataSourceHelper.cs
- CounterSetInstanceCounterDataSet.cs
- LabelEditEvent.cs
- DomainLiteralReader.cs
- CodeCompiler.cs
- NameValueSectionHandler.cs
- SqlBulkCopy.cs
- documentation.cs
- SortedSetDebugView.cs
- ContainerFilterService.cs
- UpdatePanelTrigger.cs
- LocatorBase.cs
- Query.cs
- CacheHelper.cs
- GiveFeedbackEventArgs.cs
- dataSvcMapFileLoader.cs
- SolidColorBrush.cs
- SubMenuStyleCollection.cs
- StorageConditionPropertyMapping.cs
- Object.cs
- MonitoringDescriptionAttribute.cs
- _UriTypeConverter.cs
- KeyPullup.cs
- ListView.cs
- SingleResultAttribute.cs
- DataServiceClientException.cs
- MatrixTransform.cs
- CallContext.cs
- initElementDictionary.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- RegexCapture.cs
- SmiMetaData.cs
- XhtmlBasicValidatorAdapter.cs
- SetStateDesigner.cs
- SqlRowUpdatingEvent.cs
- BmpBitmapEncoder.cs
- ServiceContractListItem.cs
- ExtensionFile.cs
- DesignerSerializationVisibilityAttribute.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TreeNodeBinding.cs
- PersonalizationEntry.cs
- ComponentResourceKey.cs
- Margins.cs
- DataGridParentRows.cs
- CodeConstructor.cs
- DataGridParentRows.cs
- PagerSettings.cs
- ExtentCqlBlock.cs
- QueryCacheManager.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- ContextMenuAutomationPeer.cs
- Baml2006KeyRecord.cs
- DataContext.cs
- MappingException.cs
- ColorTransform.cs
- QilTernary.cs
- FlagsAttribute.cs
- SQLDecimalStorage.cs
- PeerNameRecordCollection.cs
- EnvelopedPkcs7.cs
- DynamicRendererThreadManager.cs