Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Collections / Generic / KeyValuePair.cs / 1 / 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(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VisualBasicDesignerHelper.cs
- XmlIlGenerator.cs
- Symbol.cs
- ReadOnlyDataSourceView.cs
- TargetFrameworkUtil.cs
- WindowsGrip.cs
- DataGridViewLayoutData.cs
- HttpDebugHandler.cs
- CodeNamespaceImportCollection.cs
- PixelShader.cs
- Point.cs
- StrongNameMembershipCondition.cs
- ObjectViewEntityCollectionData.cs
- UnmanagedMemoryStreamWrapper.cs
- AccessControlList.cs
- RIPEMD160Managed.cs
- EnvironmentPermission.cs
- ProxySimple.cs
- XmlValidatingReaderImpl.cs
- CharStorage.cs
- Base64Stream.cs
- LinearKeyFrames.cs
- BindingExpression.cs
- MemoryMappedFileSecurity.cs
- CheckBoxDesigner.cs
- Source.cs
- BindToObject.cs
- Simplifier.cs
- NetPeerTcpBindingElement.cs
- XamlPathDataSerializer.cs
- NamespaceDecl.cs
- ProtocolViolationException.cs
- Annotation.cs
- OperationSelectorBehavior.cs
- DataGridViewColumnCollection.cs
- DesignerSerializationVisibilityAttribute.cs
- QueryCoreOp.cs
- WeakReferenceKey.cs
- EventLogPropertySelector.cs
- XmlSchemaAnnotation.cs
- TabControlToolboxItem.cs
- MetadataCache.cs
- NestPullup.cs
- LineInfo.cs
- UnionCqlBlock.cs
- Pkcs7Signer.cs
- CodeNamespace.cs
- VerificationAttribute.cs
- TabControl.cs
- GenerateHelper.cs
- SettingsPropertyWrongTypeException.cs
- VisualBasicSettingsHandler.cs
- HttpRawResponse.cs
- XhtmlBasicValidatorAdapter.cs
- Decimal.cs
- Encoding.cs
- SettingsPropertyIsReadOnlyException.cs
- ClientEventManager.cs
- SmtpNetworkElement.cs
- ProgressBar.cs
- TypeResolver.cs
- VirtualizingPanel.cs
- AuthorizationSection.cs
- MustUnderstandBehavior.cs
- TypeDependencyAttribute.cs
- OAVariantLib.cs
- StrongNameKeyPair.cs
- XPathException.cs
- ClientRoleProvider.cs
- FileDetails.cs
- InstancePersistenceCommand.cs
- DbDataReader.cs
- XsdDuration.cs
- LinqDataSourceSelectEventArgs.cs
- _AcceptOverlappedAsyncResult.cs
- SimpleBitVector32.cs
- PasswordPropertyTextAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- WindowsSysHeader.cs
- UIElement3DAutomationPeer.cs
- RbTree.cs
- FillErrorEventArgs.cs
- ServiceContractViewControl.cs
- ClassGenerator.cs
- CodeSpit.cs
- ResourceReader.cs
- TreeNodeMouseHoverEvent.cs
- RequestBringIntoViewEventArgs.cs
- Model3D.cs
- GridViewCancelEditEventArgs.cs
- NumericExpr.cs
- FontClient.cs
- SqlCacheDependencySection.cs
- SQLInt64Storage.cs
- _FtpControlStream.cs
- ControlParameter.cs
- ImmutableObjectAttribute.cs
- KeyValueInternalCollection.cs
- RangeValueProviderWrapper.cs
- ToolboxComponentsCreatingEventArgs.cs