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
- SmiMetaData.cs
- DirectoryObjectSecurity.cs
- Compiler.cs
- SafeSystemMetrics.cs
- WebServiceEnumData.cs
- _ScatterGatherBuffers.cs
- MenuItemStyle.cs
- ThreadStateException.cs
- PasswordTextNavigator.cs
- DataGridViewImageColumn.cs
- OpCellTreeNode.cs
- ConstraintConverter.cs
- DataServiceConfiguration.cs
- DispatcherHooks.cs
- StoreAnnotationsMap.cs
- ExecutionContext.cs
- WebPartCollection.cs
- TextRangeAdaptor.cs
- SignatureGenerator.cs
- UserPreferenceChangedEventArgs.cs
- Dictionary.cs
- GPPOINT.cs
- GuidelineCollection.cs
- SecurityToken.cs
- ScriptReferenceBase.cs
- WebPartsSection.cs
- SettingsPropertyValueCollection.cs
- CodePropertyReferenceExpression.cs
- WorkflowApplicationCompletedEventArgs.cs
- MimeObjectFactory.cs
- EditorPart.cs
- RawUIStateInputReport.cs
- LocatorManager.cs
- SystemInfo.cs
- TabletDevice.cs
- DynamicValidatorEventArgs.cs
- Parameter.cs
- DisplayClaim.cs
- LongPath.cs
- Mutex.cs
- SQLSingle.cs
- BindingMemberInfo.cs
- AutomationProperty.cs
- RichTextBoxContextMenu.cs
- ZoneButton.cs
- Page.cs
- Underline.cs
- TextDecoration.cs
- TextEditorContextMenu.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SymbolMethod.cs
- RoleService.cs
- DataSysAttribute.cs
- SynchronizedDispatch.cs
- WebControlsSection.cs
- Root.cs
- PanelContainerDesigner.cs
- SoapElementAttribute.cs
- TrustSection.cs
- BinaryCommonClasses.cs
- CommandBinding.cs
- WindowsFormsSynchronizationContext.cs
- SliderAutomationPeer.cs
- LedgerEntry.cs
- MessageBox.cs
- DocumentReferenceCollection.cs
- CombinedGeometry.cs
- ContainerControl.cs
- AuthorizationRule.cs
- Matrix3DConverter.cs
- DependencyProperty.cs
- AdPostCacheSubstitution.cs
- configsystem.cs
- NotImplementedException.cs
- Activator.cs
- VBIdentifierTrimConverter.cs
- StrongNameSignatureInformation.cs
- ApplicationSettingsBase.cs
- CodeRemoveEventStatement.cs
- PreviewKeyDownEventArgs.cs
- ObjectDataSourceStatusEventArgs.cs
- FileClassifier.cs
- SHA256.cs
- TwoPhaseCommitProxy.cs
- XmlChildEnumerator.cs
- RouteItem.cs
- XPathPatternParser.cs
- SettingsBase.cs
- SharedUtils.cs
- SqlException.cs
- CompiledXpathExpr.cs
- ItemCheckedEvent.cs
- ListViewUpdatedEventArgs.cs
- MediaContextNotificationWindow.cs
- UInt32Storage.cs
- StorageScalarPropertyMapping.cs
- WorkflowInstance.cs
- TextTreeTextBlock.cs
- ProfileGroupSettings.cs
- AccessViolationException.cs