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
- InputMethodStateChangeEventArgs.cs
- EventNotify.cs
- ExtractorMetadata.cs
- ExtensionDataObject.cs
- PerformanceCounterPermission.cs
- LineVisual.cs
- SoapAttributeAttribute.cs
- XPathNavigatorReader.cs
- PrinterResolution.cs
- CapabilitiesState.cs
- PopupEventArgs.cs
- CompositeCollection.cs
- ScrollBarAutomationPeer.cs
- NominalTypeEliminator.cs
- PrivateFontCollection.cs
- shaperfactoryquerycacheentry.cs
- CalendarDesigner.cs
- ProjectedSlot.cs
- OrderByLifter.cs
- BinarySerializer.cs
- PrivacyNoticeBindingElement.cs
- HandleExceptionArgs.cs
- ButtonChrome.cs
- AdapterDictionary.cs
- PermissionSetTriple.cs
- SetStateDesigner.cs
- thaishape.cs
- HttpChannelFactory.cs
- DurableInstance.cs
- OneOfScalarConst.cs
- NativeMethods.cs
- NextPreviousPagerField.cs
- PermissionListSet.cs
- TrackingMemoryStreamFactory.cs
- ValueChangedEventManager.cs
- DbDeleteCommandTree.cs
- ScriptingRoleServiceSection.cs
- TextModifierScope.cs
- UrlSyndicationContent.cs
- RelatedCurrencyManager.cs
- UndoManager.cs
- TypeBrowserDialog.cs
- WindowsListViewGroup.cs
- DataBindingValueUIHandler.cs
- PersonalizablePropertyEntry.cs
- EntityDataSourceWizardForm.cs
- ResourceDescriptionAttribute.cs
- DBCommand.cs
- XmlSchemaSimpleContentExtension.cs
- BoolExpressionVisitors.cs
- RelationshipDetailsCollection.cs
- ChildTable.cs
- IntSecurity.cs
- FileUtil.cs
- X509CertificateValidator.cs
- CountAggregationOperator.cs
- X509Chain.cs
- HostingEnvironmentException.cs
- DataServiceHostWrapper.cs
- UnsafeNativeMethods.cs
- TaskExtensions.cs
- EventLogEntry.cs
- IDQuery.cs
- SchemaNames.cs
- SqlVersion.cs
- Bookmark.cs
- ToolStripItemTextRenderEventArgs.cs
- WebPartTransformerCollection.cs
- SafeNativeMethodsCLR.cs
- RealProxy.cs
- CodeAttributeDeclaration.cs
- UnsafePeerToPeerMethods.cs
- RelationshipEndCollection.cs
- BamlBinaryReader.cs
- PrintPreviewDialog.cs
- BaseDataBoundControlDesigner.cs
- dbdatarecord.cs
- PartDesigner.cs
- DataServices.cs
- Panel.cs
- OdbcPermission.cs
- DebugView.cs
- SiteMapNodeItem.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- FamilyMapCollection.cs
- CodeStatementCollection.cs
- CodeCastExpression.cs
- HebrewNumber.cs
- RuntimeCompatibilityAttribute.cs
- Symbol.cs
- InternalConfigSettingsFactory.cs
- TextElement.cs
- ReaderWriterLockWrapper.cs
- WindowsRichEditRange.cs
- DataGridCommandEventArgs.cs
- TemplateKeyConverter.cs
- WebPartDisplayModeCollection.cs
- ItemsChangedEventArgs.cs
- ClockGroup.cs
- SoapAttributeOverrides.cs