Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeneralTransformCollection.cs
- ThreadStateException.cs
- PrinterResolution.cs
- BezierSegment.cs
- Nodes.cs
- InnerItemCollectionView.cs
- Facet.cs
- TdsParserSafeHandles.cs
- VectorAnimationBase.cs
- TextFormatterImp.cs
- ToolboxItemFilterAttribute.cs
- MessageBox.cs
- DeclarativeCatalogPart.cs
- TreeNodeBindingCollection.cs
- FacetDescription.cs
- ExeContext.cs
- MetaType.cs
- WriteLine.cs
- PropertyToken.cs
- MD5.cs
- HtmlInputCheckBox.cs
- TabletDevice.cs
- DescendantOverDescendantQuery.cs
- FtpCachePolicyElement.cs
- HScrollProperties.cs
- EncodingNLS.cs
- DesignerAdRotatorAdapter.cs
- DynamicPropertyHolder.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- EpmSourceTree.cs
- WebPartUtil.cs
- GenerateTemporaryTargetAssembly.cs
- XComponentModel.cs
- ListQueryResults.cs
- XhtmlBasicValidationSummaryAdapter.cs
- StreamingContext.cs
- AppliedDeviceFiltersEditor.cs
- TemplateControlCodeDomTreeGenerator.cs
- DescendantQuery.cs
- NullableDecimalMinMaxAggregationOperator.cs
- BitmapEncoder.cs
- ResourceSet.cs
- ProtocolViolationException.cs
- DataGridViewLinkCell.cs
- MediaPlayerState.cs
- ListViewInsertionMark.cs
- FloaterBaseParaClient.cs
- XmlSchemaSimpleContentRestriction.cs
- ObfuscationAttribute.cs
- DLinqTableProvider.cs
- KeyInstance.cs
- ButtonBase.cs
- ProfileSettingsCollection.cs
- ValidationError.cs
- UnaryNode.cs
- GenericPrincipal.cs
- DataViewManager.cs
- ApplicationId.cs
- SiteMapNodeCollection.cs
- ArraySubsetEnumerator.cs
- HashCodeCombiner.cs
- DBCSCodePageEncoding.cs
- DbParameterCollection.cs
- ContravarianceAdapter.cs
- AssemblyInfo.cs
- MinMaxParagraphWidth.cs
- IisTraceListener.cs
- DictionaryKeyPropertyAttribute.cs
- SpellerStatusTable.cs
- SqlProfileProvider.cs
- MethodAccessException.cs
- HttpFileCollectionWrapper.cs
- XmlSignatureManifest.cs
- XmlQueryType.cs
- DesignerWithHeader.cs
- EventProviderWriter.cs
- ForeignConstraint.cs
- WriteFileContext.cs
- RenderDataDrawingContext.cs
- dbenumerator.cs
- Symbol.cs
- TransformPatternIdentifiers.cs
- ResXBuildProvider.cs
- ApplicationFileParser.cs
- TimeSpan.cs
- RawStylusInputReport.cs
- x509utils.cs
- CreateUserWizardStep.cs
- XamlSerializer.cs
- ObjectToIdCache.cs
- RegexCaptureCollection.cs
- IDictionary.cs
- CodeTryCatchFinallyStatement.cs
- XmlDataCollection.cs
- PersonalizationEntry.cs
- TrackingLocationCollection.cs
- AuthorizationRule.cs
- EndPoint.cs
- MatrixCamera.cs
- BitmapImage.cs