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
- DragSelectionMessageFilter.cs
- TagPrefixAttribute.cs
- loginstatus.cs
- SchemaTypeEmitter.cs
- Normalization.cs
- FixedSOMTable.cs
- StatusBar.cs
- PropertyMap.cs
- PaginationProgressEventArgs.cs
- URLIdentityPermission.cs
- FeatureManager.cs
- BamlLocalizer.cs
- WebPartUserCapability.cs
- SerialReceived.cs
- IfElseDesigner.xaml.cs
- AdornerPresentationContext.cs
- DbParameterCollectionHelper.cs
- TrustLevelCollection.cs
- Vector3DConverter.cs
- HandlerMappingMemo.cs
- ImageListDesigner.cs
- Soap.cs
- TemplateEditingVerb.cs
- SqlTypesSchemaImporter.cs
- ConnectionPoint.cs
- SmtpAuthenticationManager.cs
- BitmapData.cs
- UrlRoutingHandler.cs
- parserscommon.cs
- XsdDateTime.cs
- DataRowCollection.cs
- EntityCommand.cs
- ProjectedSlot.cs
- Internal.cs
- DiscreteKeyFrames.cs
- ChtmlTextBoxAdapter.cs
- Span.cs
- CacheOutputQuery.cs
- CompositeControlDesigner.cs
- TargetControlTypeAttribute.cs
- ProfileGroupSettings.cs
- XmlSchemaValidationException.cs
- TdsParser.cs
- SiteMapSection.cs
- SafeTimerHandle.cs
- MimeObjectFactory.cs
- UIElement3D.cs
- ControlBindingsCollection.cs
- CopyNamespacesAction.cs
- XmlDataCollection.cs
- BuildProviderUtils.cs
- XhtmlTextWriter.cs
- ParserHooks.cs
- SimpleMailWebEventProvider.cs
- CollectionBuilder.cs
- WindowsListViewScroll.cs
- Label.cs
- MSAAWinEventWrap.cs
- ModuleElement.cs
- SoapAttributeOverrides.cs
- BulletedListDesigner.cs
- ReferenceEqualityComparer.cs
- OleDbConnection.cs
- WindowsToolbar.cs
- ProcessHostFactoryHelper.cs
- WebPartTransformerCollection.cs
- ResourceContainerWrapper.cs
- XmlSortKeyAccumulator.cs
- GorillaCodec.cs
- EdgeProfileValidation.cs
- QuaternionConverter.cs
- XmlWriterDelegator.cs
- VisualStateGroup.cs
- ExpressionConverter.cs
- TextDecorationUnitValidation.cs
- OleAutBinder.cs
- PartitionedStreamMerger.cs
- ToolstripProfessionalRenderer.cs
- DesignerPainter.cs
- MultiBinding.cs
- AssemblyNameUtility.cs
- GenerateScriptTypeAttribute.cs
- TextOptionsInternal.cs
- DataGridCellItemAutomationPeer.cs
- StretchValidation.cs
- XmlAttributeCache.cs
- WindowsAltTab.cs
- ActivityStatusChangeEventArgs.cs
- SoapFormatter.cs
- WebConfigurationFileMap.cs
- FrameworkContentElementAutomationPeer.cs
- MembershipValidatePasswordEventArgs.cs
- ToolStripSplitStackLayout.cs
- XsltContext.cs
- LineGeometry.cs
- AccessText.cs
- DBSchemaRow.cs
- InputLanguageCollection.cs
- WebPartZoneBase.cs
- CorrelationToken.cs