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
- AppDomainUnloadedException.cs
- ManipulationLogic.cs
- Transform3DCollection.cs
- SqlConnectionStringBuilder.cs
- ConstraintStruct.cs
- RuleElement.cs
- WaitHandleCannotBeOpenedException.cs
- WebPartsSection.cs
- SequentialUshortCollection.cs
- ScrollBarRenderer.cs
- LoadGrammarCompletedEventArgs.cs
- WeakReadOnlyCollection.cs
- GridLengthConverter.cs
- GlyphShapingProperties.cs
- UnsafeCollabNativeMethods.cs
- FontClient.cs
- SafeMemoryMappedViewHandle.cs
- OdbcErrorCollection.cs
- EntityType.cs
- lengthconverter.cs
- ProcessHostServerConfig.cs
- KeyMatchBuilder.cs
- ScrollItemPattern.cs
- PointKeyFrameCollection.cs
- LabelDesigner.cs
- ActiveDocumentEvent.cs
- DataGridRowDetailsEventArgs.cs
- SimpleMailWebEventProvider.cs
- NavigationProperty.cs
- TextParagraph.cs
- ProjectionPruner.cs
- Hyperlink.cs
- StrokeCollection2.cs
- CompilationLock.cs
- WindowPatternIdentifiers.cs
- Baml2006KnownTypes.cs
- XdrBuilder.cs
- DataKeyCollection.cs
- AutoGeneratedField.cs
- RtfFormatStack.cs
- BooleanFunctions.cs
- DataGridViewLinkColumn.cs
- InvalidPipelineStoreException.cs
- DataList.cs
- QueryStringParameter.cs
- RotateTransform3D.cs
- FileDialogPermission.cs
- PrinterUnitConvert.cs
- LazyLoadBehavior.cs
- IntegrationExceptionEventArgs.cs
- ManifestResourceInfo.cs
- DbgUtil.cs
- ADConnectionHelper.cs
- SaveFileDialog.cs
- DocobjHost.cs
- XhtmlBasicPageAdapter.cs
- invalidudtexception.cs
- RowSpanVector.cs
- Clipboard.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- WindowsListViewGroup.cs
- TableLayoutStyle.cs
- WindowHideOrCloseTracker.cs
- RemoteWebConfigurationHostStream.cs
- QueryCacheManager.cs
- StringSorter.cs
- EmbeddedMailObjectsCollection.cs
- CalendarKeyboardHelper.cs
- PkcsUtils.cs
- HtmlLink.cs
- IsolatedStorage.cs
- FileDataSourceCache.cs
- Point.cs
- SqlUserDefinedAggregateAttribute.cs
- BatchParser.cs
- BufferAllocator.cs
- TextAutomationPeer.cs
- SQLUtility.cs
- UnsafePeerToPeerMethods.cs
- WindowsPrincipal.cs
- FileRecordSequenceCompletedAsyncResult.cs
- GridSplitterAutomationPeer.cs
- TextModifier.cs
- DeviceContext2.cs
- ForwardPositionQuery.cs
- ProgressBarRenderer.cs
- IdleTimeoutMonitor.cs
- TagMapInfo.cs
- TextViewBase.cs
- BooleanAnimationUsingKeyFrames.cs
- SourceItem.cs
- XmlIncludeAttribute.cs
- WebReferencesBuildProvider.cs
- ContentValidator.cs
- SubtreeProcessor.cs
- PenLineCapValidation.cs
- MemberNameValidator.cs
- EditorServiceContext.cs
- SendMailErrorEventArgs.cs
- ToolStripItemImageRenderEventArgs.cs