Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PagedDataSource.cs
- ImageListUtils.cs
- DependsOnAttribute.cs
- ToolStripItemEventArgs.cs
- MissingFieldException.cs
- SamlAuthorizationDecisionStatement.cs
- ColorEditor.cs
- RelatedImageListAttribute.cs
- BamlRecords.cs
- PermissionListSet.cs
- PeerTransportListenAddressValidatorAttribute.cs
- EventProxy.cs
- Emitter.cs
- FlowchartDesigner.Helpers.cs
- GridViewColumn.cs
- FixedDocumentSequencePaginator.cs
- FlowDocumentPaginator.cs
- Int64Animation.cs
- OdbcUtils.cs
- ServicePoint.cs
- oledbmetadatacollectionnames.cs
- DocumentPage.cs
- WasAdminWrapper.cs
- BasicKeyConstraint.cs
- ValueTypeFixupInfo.cs
- SystemResourceHost.cs
- CodeCastExpression.cs
- OrderedDictionaryStateHelper.cs
- ReachPageContentSerializer.cs
- AuthorizationSection.cs
- WebEvents.cs
- RichTextBoxConstants.cs
- SortFieldComparer.cs
- DataTransferEventArgs.cs
- CodePageEncoding.cs
- DelayedRegex.cs
- cache.cs
- FastEncoder.cs
- ObjectDataSourceFilteringEventArgs.cs
- TextRangeAdaptor.cs
- NetworkCredential.cs
- Brush.cs
- NamedPermissionSet.cs
- MsmqException.cs
- FeatureAttribute.cs
- AbsoluteQuery.cs
- AppDomainFactory.cs
- CompModSwitches.cs
- EntityKeyElement.cs
- MouseDevice.cs
- Rotation3D.cs
- OdbcFactory.cs
- DaylightTime.cs
- ColorConvertedBitmap.cs
- FunctionDescription.cs
- ThreadExceptionEvent.cs
- Rect3DConverter.cs
- COM2TypeInfoProcessor.cs
- GlobalizationAssembly.cs
- RelOps.cs
- RichTextBoxDesigner.cs
- _NetRes.cs
- HandleExceptionArgs.cs
- PageAsyncTaskManager.cs
- FontWeightConverter.cs
- ModelEditingScope.cs
- ColorConvertedBitmap.cs
- cookiecontainer.cs
- DependencyPropertyKind.cs
- CorrelationTokenInvalidatedHandler.cs
- SimpleWorkerRequest.cs
- GenericPrincipal.cs
- ModelToObjectValueConverter.cs
- SqlReferenceCollection.cs
- TraceSource.cs
- ProfileSection.cs
- SqlInternalConnectionTds.cs
- WindowsFormsLinkLabel.cs
- Module.cs
- ColumnMapProcessor.cs
- SafeRegistryHandle.cs
- GeneralTransform3DCollection.cs
- SqlCacheDependencyDatabase.cs
- Convert.cs
- TemplatePropertyEntry.cs
- AnimationTimeline.cs
- ServerIdentity.cs
- IndexedDataBuffer.cs
- EmptyReadOnlyDictionaryInternal.cs
- LineInfo.cs
- SmiEventStream.cs
- LinkConverter.cs
- ProcessHostMapPath.cs
- ProcessModelSection.cs
- ArraySubsetEnumerator.cs
- SemanticBasicElement.cs
- Thumb.cs
- TypeDescriptionProviderAttribute.cs
- TextBlock.cs
- UserControl.cs