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
- XmlToDatasetMap.cs
- ArrayTypeMismatchException.cs
- MimeTypeAttribute.cs
- _PooledStream.cs
- XmlAttributeCache.cs
- DashStyles.cs
- PrePrepareMethodAttribute.cs
- XPathNavigatorReader.cs
- RecognizerStateChangedEventArgs.cs
- BamlReader.cs
- SqlConnectionManager.cs
- ViewGenResults.cs
- NativeActivityContext.cs
- ObjectContextServiceProvider.cs
- Int16Animation.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TextBlockAutomationPeer.cs
- PersonalizablePropertyEntry.cs
- MonthCalendar.cs
- DebugView.cs
- InfocardClientCredentials.cs
- PipelineModuleStepContainer.cs
- ComboBox.cs
- AutoSizeToolBoxItem.cs
- DesignerContextDescriptor.cs
- LinqDataSourceDeleteEventArgs.cs
- WinOEToolBoxItem.cs
- XsdBuildProvider.cs
- HttpDateParse.cs
- ColumnMap.cs
- PageSettings.cs
- JournalEntryListConverter.cs
- FixedPage.cs
- ItemContainerGenerator.cs
- DispatcherExceptionEventArgs.cs
- WebPartMinimizeVerb.cs
- VisualProxy.cs
- TdsParameterSetter.cs
- Scripts.cs
- Error.cs
- TimeSpanParse.cs
- FunctionDescription.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XComponentModel.cs
- TransportListener.cs
- ToolStripRendererSwitcher.cs
- ReadOnlyCollection.cs
- SegmentInfo.cs
- HttpRequest.cs
- MetadataArtifactLoader.cs
- ChtmlPhoneCallAdapter.cs
- DeviceSpecificDialogCachedState.cs
- Label.cs
- RuntimeConfig.cs
- CFGGrammar.cs
- MultipartIdentifier.cs
- StorageEntityContainerMapping.cs
- TextRunCacheImp.cs
- EntityClientCacheKey.cs
- PrintDialog.cs
- BinaryParser.cs
- ModuleBuilder.cs
- sqlmetadatafactory.cs
- Int64Animation.cs
- DocobjHost.cs
- UserControl.cs
- MapPathBasedVirtualPathProvider.cs
- HitTestFilterBehavior.cs
- EdmValidator.cs
- HostProtectionPermission.cs
- DataGridViewCellCancelEventArgs.cs
- UniqueConstraint.cs
- KnownTypesProvider.cs
- CompiledRegexRunnerFactory.cs
- LinqDataSourceView.cs
- Rotation3DKeyFrameCollection.cs
- PersistChildrenAttribute.cs
- HtmlTitle.cs
- Win32Native.cs
- ObjectListFieldCollection.cs
- CreatingCookieEventArgs.cs
- ToolTip.cs
- ViewValidator.cs
- ItemCollectionEditor.cs
- HtmlInputCheckBox.cs
- SqlInternalConnection.cs
- IpcManager.cs
- CopyNamespacesAction.cs
- StateDesigner.LayoutSelectionGlyph.cs
- RC2CryptoServiceProvider.cs
- NativeActivityAbortContext.cs
- SystemEvents.cs
- CharStorage.cs
- ToolStripDropDownClosingEventArgs.cs
- CompiledQueryCacheKey.cs
- ConstructorNeedsTagAttribute.cs
- LinqDataSourceUpdateEventArgs.cs
- CmsInterop.cs
- DummyDataSource.cs
- CipherData.cs