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
- Rotation3DAnimationUsingKeyFrames.cs
- Ticks.cs
- DataGridViewLayoutData.cs
- HuffModule.cs
- ExceptQueryOperator.cs
- EncoderReplacementFallback.cs
- ButtonStandardAdapter.cs
- List.cs
- TextBreakpoint.cs
- InstrumentationTracker.cs
- HttpConfigurationContext.cs
- UpdateRecord.cs
- TrackingServices.cs
- FilterException.cs
- MessageQueueConverter.cs
- GenerateTemporaryTargetAssembly.cs
- WebPartDescriptionCollection.cs
- XmlSchemaValidationException.cs
- BitmapEffectDrawing.cs
- SmtpException.cs
- XmlDataDocument.cs
- ZipIOLocalFileDataDescriptor.cs
- WebPartVerbCollection.cs
- Dispatcher.cs
- ZoneIdentityPermission.cs
- SafeEventLogWriteHandle.cs
- Event.cs
- DBCommand.cs
- LicenseException.cs
- TreeViewImageKeyConverter.cs
- WindowsSlider.cs
- ArrayWithOffset.cs
- PartitionerStatic.cs
- RSAOAEPKeyExchangeFormatter.cs
- CacheVirtualItemsEvent.cs
- Int64AnimationUsingKeyFrames.cs
- ColumnHeader.cs
- HtmlSelect.cs
- DataGridViewCellFormattingEventArgs.cs
- ToolStripLocationCancelEventArgs.cs
- EncodingNLS.cs
- PackageRelationship.cs
- ReadOnlyTernaryTree.cs
- ContentTextAutomationPeer.cs
- OutputWindow.cs
- ExchangeUtilities.cs
- AuthenticationSection.cs
- ImageField.cs
- RootBrowserWindow.cs
- ExecutedRoutedEventArgs.cs
- ElementHost.cs
- DebuggerAttributes.cs
- ScriptResourceAttribute.cs
- AppDomainProtocolHandler.cs
- XmlnsCache.cs
- XsltException.cs
- NameTable.cs
- ZoneButton.cs
- HtmlElement.cs
- ActivityBindForm.Designer.cs
- DrawingGroup.cs
- CuspData.cs
- TrackingProfileSerializer.cs
- JapaneseCalendar.cs
- RightsManagementPermission.cs
- NavigatingCancelEventArgs.cs
- MatrixUtil.cs
- TextElement.cs
- StrokeCollection.cs
- WaitHandleCannotBeOpenedException.cs
- xamlnodes.cs
- Unit.cs
- ControlTemplate.cs
- RuntimeIdentifierPropertyAttribute.cs
- SystemFonts.cs
- ApplicationContext.cs
- RequestContext.cs
- SmtpNtlmAuthenticationModule.cs
- FlowDocumentFormatter.cs
- DataGridViewLayoutData.cs
- DeviceContext2.cs
- TypeTypeConverter.cs
- HttpHandlerActionCollection.cs
- ObjectKeyFrameCollection.cs
- LiteralLink.cs
- InternalPermissions.cs
- StickyNote.cs
- SqlTriggerAttribute.cs
- RangeBase.cs
- MultiTrigger.cs
- DependencyPropertyHelper.cs
- PropertyValueChangedEvent.cs
- UnrecognizedPolicyAssertionElement.cs
- InstanceCreationEditor.cs
- Selection.cs
- basecomparevalidator.cs
- HttpCachePolicyElement.cs
- ProxyWebPart.cs
- TypeBuilder.cs
- TypeElement.cs