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
- X509CertificateChain.cs
- RegexCode.cs
- CommandExpr.cs
- BrowserCapabilitiesFactory.cs
- _TimerThread.cs
- SecurityPermission.cs
- KeyValueInternalCollection.cs
- SoapBinding.cs
- BamlRecordWriter.cs
- CodeParameterDeclarationExpression.cs
- ReferencedType.cs
- FrameworkElementAutomationPeer.cs
- TableHeaderCell.cs
- Automation.cs
- Compiler.cs
- CodeGroup.cs
- AssemblyBuilderData.cs
- ConfigPathUtility.cs
- InternalConfigRoot.cs
- XmlSerializerFactory.cs
- XamlNamespaceHelper.cs
- CommandBinding.cs
- SimpleType.cs
- BaseTemplateParser.cs
- UserControlBuildProvider.cs
- ExceptionUtility.cs
- MatrixAnimationUsingPath.cs
- WorkflowWebService.cs
- SimpleApplicationHost.cs
- NestPullup.cs
- TimeSpanSecondsConverter.cs
- TextSerializer.cs
- ItemList.cs
- TraceSection.cs
- BrowserCapabilitiesCompiler.cs
- PrimitiveSchema.cs
- WebServiceEnumData.cs
- CompoundFileReference.cs
- DataSourceView.cs
- ListViewCommandEventArgs.cs
- CodeSubDirectoriesCollection.cs
- PaginationProgressEventArgs.cs
- _IPv6Address.cs
- EdgeModeValidation.cs
- OdbcTransaction.cs
- SymbolType.cs
- CodeExporter.cs
- baseaxisquery.cs
- C14NUtil.cs
- PersonalizationStateQuery.cs
- WindowsGraphicsWrapper.cs
- ProfileModule.cs
- DBCommandBuilder.cs
- DataGridViewRowEventArgs.cs
- HttpResponseHeader.cs
- SimpleColumnProvider.cs
- BoolExpression.cs
- ListBoxItemWrapperAutomationPeer.cs
- BaseResourcesBuildProvider.cs
- TextBoxBase.cs
- ProviderConnectionPointCollection.cs
- StackBuilderSink.cs
- IntegerCollectionEditor.cs
- Point.cs
- FormsAuthenticationUserCollection.cs
- NamespaceTable.cs
- Form.cs
- CrossSiteScriptingValidation.cs
- IsolatedStorage.cs
- ConnectionConsumerAttribute.cs
- ToolStripDropDownClosingEventArgs.cs
- PrimitiveDataContract.cs
- EventHandlerList.cs
- ListParaClient.cs
- CharStorage.cs
- ObjectStateEntry.cs
- MobileTextWriter.cs
- DbProviderConfigurationHandler.cs
- DirectoryNotFoundException.cs
- Compensation.cs
- ModelPropertyCollectionImpl.cs
- CorrelationResolver.cs
- ValidateNames.cs
- ProviderUtil.cs
- TextDecorationLocationValidation.cs
- VSWCFServiceContractGenerator.cs
- WebPartsPersonalization.cs
- GridViewAutoFormat.cs
- SynchronizedDispatch.cs
- UserCancellationException.cs
- SafeCryptoHandles.cs
- WindowsRegion.cs
- BulletedList.cs
- FontFamily.cs
- InheritablePropertyChangeInfo.cs
- VisualTarget.cs
- NullRuntimeConfig.cs
- IsolatedStorageFilePermission.cs
- DetailsViewPageEventArgs.cs
- FileDetails.cs