Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Linq / Parallel / Utils / Pair.cs / 1305376 / Pair.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // Pair.cs // //[....] // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- namespace System.Linq.Parallel { ////// A pair just wraps two bits of data into a single addressable unit. This is a /// value type to ensure it remains very lightweight, since it is frequently used /// with other primitive data types as well. /// ////// internal struct Pair { // The first and second bits of data. internal T m_first; internal U m_second; //------------------------------------------------------------------------------------ // A simple constructor that initializes the first/second fields. // public Pair(T first, U second) { m_first = first; m_second = second; } //----------------------------------------------------------------------------------- // Accessors for the left and right data. // public T First { get { return m_first; } set { m_first = value; } } public U Second { get { return m_second; } set { m_second = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // Pair.cs // // [....] // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- namespace System.Linq.Parallel { ////// A pair just wraps two bits of data into a single addressable unit. This is a /// value type to ensure it remains very lightweight, since it is frequently used /// with other primitive data types as well. /// ////// internal struct Pair { // The first and second bits of data. internal T m_first; internal U m_second; //------------------------------------------------------------------------------------ // A simple constructor that initializes the first/second fields. // public Pair(T first, U second) { m_first = first; m_second = second; } //----------------------------------------------------------------------------------- // Accessors for the left and right data. // public T First { get { return m_first; } set { m_first = value; } } public U Second { get { return m_second; } set { m_second = value; } } } } // 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
- ContextConfiguration.cs
- PeerSecurityManager.cs
- Panel.cs
- NewItemsContextMenuStrip.cs
- TabControlDesigner.cs
- DeviceSpecificDesigner.cs
- ReverseQueryOperator.cs
- SecurityCriticalDataForSet.cs
- IArgumentProvider.cs
- StandardMenuStripVerb.cs
- SelectionUIHandler.cs
- CancelEventArgs.cs
- TriggerAction.cs
- WmlCalendarAdapter.cs
- HashSetDebugView.cs
- ExceptionUtility.cs
- HwndSourceKeyboardInputSite.cs
- TableLayoutStyleCollection.cs
- SystemPens.cs
- Int16Animation.cs
- CodePageEncoding.cs
- oledbmetadatacolumnnames.cs
- Authorization.cs
- AstNode.cs
- FixedFindEngine.cs
- GridViewSortEventArgs.cs
- LinqDataSourceDeleteEventArgs.cs
- DictionarySurrogate.cs
- CompleteWizardStep.cs
- CachedFontFace.cs
- InlinedAggregationOperator.cs
- ConfigXmlCDataSection.cs
- MemberPathMap.cs
- PagesSection.cs
- OutputScopeManager.cs
- DeclarativeCatalogPart.cs
- HostingEnvironmentException.cs
- Profiler.cs
- MobileUserControlDesigner.cs
- CollectionEditorDialog.cs
- StoragePropertyMapping.cs
- XamlLoadErrorInfo.cs
- PageHandlerFactory.cs
- MenuAdapter.cs
- VirtualizingPanel.cs
- RTLAwareMessageBox.cs
- InstancePersistenceCommandException.cs
- ToolStripContentPanelRenderEventArgs.cs
- TextTreeText.cs
- HtmlDocument.cs
- CollectionTypeElement.cs
- EdmItemCollection.cs
- XPathItem.cs
- exports.cs
- ContainerControlDesigner.cs
- TextEvent.cs
- ExtensionDataReader.cs
- TableHeaderCell.cs
- TypeBuilderInstantiation.cs
- SQlBooleanStorage.cs
- RegexBoyerMoore.cs
- XmlUtil.cs
- SignatureDescription.cs
- QilStrConcatenator.cs
- WebPartCancelEventArgs.cs
- VerificationAttribute.cs
- ExecutionScope.cs
- WorkflowMarkupSerializerMapping.cs
- RadioButtonBaseAdapter.cs
- InvalidWorkflowException.cs
- AutomationFocusChangedEventArgs.cs
- WebBrowser.cs
- ConfigUtil.cs
- TheQuery.cs
- SettingsBase.cs
- Crc32Helper.cs
- _IPv6Address.cs
- PersonalizableTypeEntry.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ToolStripProgressBar.cs
- XmlFormatExtensionPointAttribute.cs
- PeerOutputChannel.cs
- BuilderElements.cs
- TraceContextEventArgs.cs
- NativeMethods.cs
- AuthorizationSection.cs
- BrowserCapabilitiesFactoryBase.cs
- UrlPath.cs
- LogicalExpr.cs
- KeyGestureConverter.cs
- WebBrowserPermission.cs
- UIElementPropertyUndoUnit.cs
- ToolBar.cs
- CompatibleComparer.cs
- SimplePropertyEntry.cs
- XsdCachingReader.cs
- ToolStripSeparator.cs
- WindowsScrollBarBits.cs
- FormViewModeEventArgs.cs
- DrawingContext.cs