Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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
- WizardStepBase.cs
- DataGridViewDataConnection.cs
- SettingsPropertyValue.cs
- SspiSecurityTokenParameters.cs
- JobStaple.cs
- ConfigXmlAttribute.cs
- StorageMappingFragment.cs
- OdbcConnectionOpen.cs
- ObjectSet.cs
- UnmanagedMemoryStream.cs
- BidOverLoads.cs
- ArcSegment.cs
- NonParentingControl.cs
- DockAndAnchorLayout.cs
- PropertyGroupDescription.cs
- MaterialGroup.cs
- FormClosedEvent.cs
- ValueQuery.cs
- DuplicateWaitObjectException.cs
- OneToOneMappingSerializer.cs
- ForceCopyBuildProvider.cs
- CacheEntry.cs
- XmlSigningNodeWriter.cs
- ColorContext.cs
- DisableDpiAwarenessAttribute.cs
- UrlPath.cs
- BitmapEffectState.cs
- InertiaTranslationBehavior.cs
- SqlDataSourceFilteringEventArgs.cs
- GridSplitter.cs
- AssemblyCacheEntry.cs
- DeclarativeCatalogPart.cs
- LinkDescriptor.cs
- SerializationSectionGroup.cs
- ConnectionString.cs
- WebServicesInteroperability.cs
- DownloadProgressEventArgs.cs
- TableCellCollection.cs
- CryptoProvider.cs
- CommandID.cs
- TreeNode.cs
- SiteMapHierarchicalDataSourceView.cs
- RelatedView.cs
- LineGeometry.cs
- XmlNodeComparer.cs
- ListChangedEventArgs.cs
- EventSinkHelperWriter.cs
- CompiledRegexRunner.cs
- EntityDataSourceStatementEditor.cs
- CompoundFileStorageReference.cs
- ForEachAction.cs
- ProcessManager.cs
- DocumentViewerConstants.cs
- StatusBarItem.cs
- DescendantOverDescendantQuery.cs
- ValidatorCompatibilityHelper.cs
- EventLogException.cs
- BuiltInPermissionSets.cs
- AlignmentXValidation.cs
- Lazy.cs
- WebBrowserHelper.cs
- View.cs
- DbSetClause.cs
- RectangleGeometry.cs
- TextSelectionHelper.cs
- ScrollPatternIdentifiers.cs
- TrackingMemoryStreamFactory.cs
- FontResourceCache.cs
- ShaperBuffers.cs
- QueueProcessor.cs
- ImageMapEventArgs.cs
- ScriptControl.cs
- ExceptionWrapper.cs
- LayoutUtils.cs
- TextRange.cs
- XmlDataSourceNodeDescriptor.cs
- NativeMethods.cs
- ScriptingScriptResourceHandlerSection.cs
- StringResourceManager.cs
- TreeSet.cs
- CompositeDuplexElement.cs
- NodeInfo.cs
- QueryResult.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ToolStripContentPanel.cs
- HMACMD5.cs
- ToolStripItemImageRenderEventArgs.cs
- ProjectionCamera.cs
- SQLConvert.cs
- URLMembershipCondition.cs
- XmlAttributeAttribute.cs
- RequiredAttributeAttribute.cs
- SqlDelegatedTransaction.cs
- SqlEnums.cs
- LexicalChunk.cs
- InvalidateEvent.cs
- ToolBarButtonClickEvent.cs
- DataTable.cs
- Point3DValueSerializer.cs
- UseAttributeSetsAction.cs