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
- KeyFrames.cs
- VirtualDirectoryMappingCollection.cs
- Dispatcher.cs
- CompiledQueryCacheEntry.cs
- RowUpdatingEventArgs.cs
- SwitchElementsCollection.cs
- PageAsyncTaskManager.cs
- NetworkInterface.cs
- ExpressionQuoter.cs
- ToolBar.cs
- XamlPathDataSerializer.cs
- PrintingPermissionAttribute.cs
- MILUtilities.cs
- _AutoWebProxyScriptWrapper.cs
- ToolStripRenderer.cs
- DataTrigger.cs
- RequiredAttributeAttribute.cs
- SqlBuilder.cs
- KeyValueSerializer.cs
- MDIWindowDialog.cs
- UntypedNullExpression.cs
- RegularExpressionValidator.cs
- WebBrowserSiteBase.cs
- SrgsOneOf.cs
- SqlDataSourceSummaryPanel.cs
- Border.cs
- PrintPreviewGraphics.cs
- DataServiceContext.cs
- PictureBox.cs
- TdsParserStateObject.cs
- XmlNode.cs
- NumberSubstitution.cs
- IntersectQueryOperator.cs
- FormViewInsertEventArgs.cs
- FtpWebRequest.cs
- TypeGeneratedEventArgs.cs
- CodeSubDirectory.cs
- ErrorStyle.cs
- MachinePropertyVariants.cs
- CustomSignedXml.cs
- Attributes.cs
- ByteKeyFrameCollection.cs
- CatalogZoneBase.cs
- UIAgentAsyncParams.cs
- keycontainerpermission.cs
- Grid.cs
- HtmlDocument.cs
- WebPartCloseVerb.cs
- SimpleHandlerBuildProvider.cs
- ListParaClient.cs
- QuaternionAnimationUsingKeyFrames.cs
- ListViewPagedDataSource.cs
- InputMethodStateChangeEventArgs.cs
- SoundPlayer.cs
- CodeSpit.cs
- SecUtil.cs
- XamlDesignerSerializationManager.cs
- FormViewDeleteEventArgs.cs
- UdpUtility.cs
- SettingsBase.cs
- ProfileProvider.cs
- Transform3DCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- SingleTagSectionHandler.cs
- ApplicationFileCodeDomTreeGenerator.cs
- AnnotationElement.cs
- StateBag.cs
- DateTimeUtil.cs
- DataSourceProvider.cs
- SecurityMode.cs
- UrlAuthorizationModule.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- RequestQueue.cs
- OptimizedTemplateContent.cs
- HtmlInputImage.cs
- CssStyleCollection.cs
- SoapProcessingBehavior.cs
- ButtonPopupAdapter.cs
- XamlInterfaces.cs
- ReachUIElementCollectionSerializer.cs
- CodePrimitiveExpression.cs
- CodeTypeParameter.cs
- MouseButtonEventArgs.cs
- HiddenFieldPageStatePersister.cs
- SelectionManager.cs
- ApplicationFileParser.cs
- MimeReturn.cs
- RequestUriProcessor.cs
- StrokeFIndices.cs
- PeerNameResolver.cs
- Int16Animation.cs
- FixedSOMElement.cs
- ProxyWebPartConnectionCollection.cs
- PackageDigitalSignatureManager.cs
- JoinSymbol.cs
- Transform3DGroup.cs
- XmlSchemaExternal.cs
- SemanticResolver.cs
- SubtreeProcessor.cs
- FrameworkObject.cs