Code:
/ FX-1434 / FX-1434 / 1.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
- PropertyEmitter.cs
- SplitContainerDesigner.cs
- BaseHashHelper.cs
- Action.cs
- EmbeddedMailObject.cs
- __Error.cs
- MemberAssignment.cs
- PermissionRequestEvidence.cs
- Codec.cs
- TextParentUndoUnit.cs
- CodeAttributeArgument.cs
- IteratorFilter.cs
- LayoutEvent.cs
- OleDbRowUpdatingEvent.cs
- InvokeMemberBinder.cs
- GlobalItem.cs
- Buffer.cs
- ContextMenuStrip.cs
- ExecutionEngineException.cs
- DataServiceQueryOfT.cs
- SqlMethodAttribute.cs
- DiagnosticStrings.cs
- BaseCollection.cs
- latinshape.cs
- LocalizeDesigner.cs
- PropertyValueUIItem.cs
- Mapping.cs
- ProvidePropertyAttribute.cs
- ReadOnlyAttribute.cs
- MailDefinition.cs
- TypeListConverter.cs
- KeyValuePairs.cs
- EmptyStringExpandableObjectConverter.cs
- Item.cs
- XPathSingletonIterator.cs
- HttpApplicationFactory.cs
- ToolStripRendererSwitcher.cs
- ValidationHelpers.cs
- Fonts.cs
- SecureStringHasher.cs
- Helpers.cs
- CaseInsensitiveComparer.cs
- LinearQuaternionKeyFrame.cs
- TryCatch.cs
- XPathAncestorIterator.cs
- _NegoState.cs
- Visual.cs
- XmlComment.cs
- StreamSecurityUpgradeAcceptor.cs
- DataRelation.cs
- Translator.cs
- HttpModulesInstallComponent.cs
- PoisonMessageException.cs
- DelegateHelpers.cs
- GenericWebPart.cs
- EventDescriptor.cs
- HashLookup.cs
- ParameterModifier.cs
- MatrixKeyFrameCollection.cs
- odbcmetadatafactory.cs
- ListBindableAttribute.cs
- XmlHelper.cs
- MissingMethodException.cs
- XmlC14NWriter.cs
- SettingsAttributes.cs
- XmlSchemaSimpleTypeUnion.cs
- WindowsBrush.cs
- NavigatingCancelEventArgs.cs
- DBConnectionString.cs
- Row.cs
- SemanticBasicElement.cs
- FontInfo.cs
- DSACryptoServiceProvider.cs
- TextRangeEdit.cs
- DoubleAnimation.cs
- DigitShape.cs
- MissingSatelliteAssemblyException.cs
- XpsPackagingPolicy.cs
- Viewport3DAutomationPeer.cs
- Visual.cs
- AggregateNode.cs
- DataGridViewHitTestInfo.cs
- jithelpers.cs
- ListControl.cs
- ActivitySurrogate.cs
- SmuggledIUnknown.cs
- BindableTemplateBuilder.cs
- GenericEnumConverter.cs
- RelatedEnd.cs
- ArrayList.cs
- GeometryGroup.cs
- PerspectiveCamera.cs
- AssociationEndMember.cs
- ZeroOpNode.cs
- JpegBitmapDecoder.cs
- DateTimeOffsetAdapter.cs
- WindowsIdentity.cs
- LocalizedNameDescriptionPair.cs
- NamespaceImport.cs
- X509CertificateClaimSet.cs