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
- fixedPageContentExtractor.cs
- Domain.cs
- SkipQueryOptionExpression.cs
- XmlDocument.cs
- OdbcCommandBuilder.cs
- WorkflowRuntimeServiceElementCollection.cs
- ItemPager.cs
- DoubleStorage.cs
- WebRequestModulesSection.cs
- GridLength.cs
- RecommendedAsConfigurableAttribute.cs
- BitmapEffectvisualstate.cs
- _NTAuthentication.cs
- DynamicActivityXamlReader.cs
- FlowLayoutPanelDesigner.cs
- HtmlTableRow.cs
- CursorInteropHelper.cs
- XamlFigureLengthSerializer.cs
- XmlDataCollection.cs
- TransportChannelListener.cs
- DispatcherTimer.cs
- BridgeDataReader.cs
- HtmlAnchor.cs
- CssStyleCollection.cs
- XamlToRtfParser.cs
- BrushMappingModeValidation.cs
- DbConnectionHelper.cs
- Propagator.Evaluator.cs
- EtwTrace.cs
- CodeArrayCreateExpression.cs
- StreamAsIStream.cs
- WebPartCatalogAddVerb.cs
- ApplicationId.cs
- TextBoxAutoCompleteSourceConverter.cs
- ConfigPathUtility.cs
- ObfuscationAttribute.cs
- ButtonFieldBase.cs
- MemberHolder.cs
- CatalogPartDesigner.cs
- Encoding.cs
- SamlConditions.cs
- ContentTextAutomationPeer.cs
- EllipseGeometry.cs
- DateTime.cs
- XmlnsCache.cs
- AbstractExpressions.cs
- RegexMatchCollection.cs
- ExtenderControl.cs
- GridEntry.cs
- EventManager.cs
- SqlDataSourceEnumerator.cs
- ServiceModelStringsVersion1.cs
- PolygonHotSpot.cs
- WebPart.cs
- SoapReflectionImporter.cs
- ScalarOps.cs
- DeploymentSectionCache.cs
- FormViewModeEventArgs.cs
- IInstanceTable.cs
- RTLAwareMessageBox.cs
- WebPartActionVerb.cs
- ComPlusTypeValidator.cs
- FlowLayoutPanel.cs
- loginstatus.cs
- ServiceChannelProxy.cs
- BeginStoryboard.cs
- CommentEmitter.cs
- Button.cs
- TextEditorLists.cs
- HashMembershipCondition.cs
- DataServiceBehavior.cs
- ProtocolViolationException.cs
- OciLobLocator.cs
- DataRecordInfo.cs
- UnsafeNativeMethods.cs
- __Filters.cs
- OrderedEnumerableRowCollection.cs
- FindCompletedEventArgs.cs
- AppLevelCompilationSectionCache.cs
- Odbc32.cs
- SubclassTypeValidator.cs
- WebServiceData.cs
- RegexMatch.cs
- FileDetails.cs
- ArrayList.cs
- StorageAssociationTypeMapping.cs
- SoapMessage.cs
- SafeEventLogWriteHandle.cs
- MediaTimeline.cs
- TokenDescriptor.cs
- SmtpException.cs
- BatchWriter.cs
- TaskFormBase.cs
- ByteKeyFrameCollection.cs
- BufferedGraphicsManager.cs
- QueryStack.cs
- TextElementAutomationPeer.cs
- NetMsmqSecurityElement.cs
- DefaultEvaluationContext.cs
- mansign.cs