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
- DesignerLoader.cs
- XmlBinaryReader.cs
- ObjectDataSource.cs
- CqlParser.cs
- XmlElement.cs
- EdmProviderManifest.cs
- ServiceControllerDesigner.cs
- Pts.cs
- KnownTypeAttribute.cs
- COM2EnumConverter.cs
- Rotation3D.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- XmlStreamNodeWriter.cs
- ImageMapEventArgs.cs
- CreateUserErrorEventArgs.cs
- HtmlTableRow.cs
- TranslateTransform.cs
- BatchServiceHost.cs
- Annotation.cs
- Compress.cs
- GroupByExpressionRewriter.cs
- ButtonFlatAdapter.cs
- NullableFloatMinMaxAggregationOperator.cs
- StoreItemCollection.Loader.cs
- Panel.cs
- OptimizedTemplateContent.cs
- UnauthorizedAccessException.cs
- PositiveTimeSpanValidator.cs
- ObjectDataSourceDisposingEventArgs.cs
- ExpressionNormalizer.cs
- DataSvcMapFileSerializer.cs
- ConfigXmlWhitespace.cs
- Condition.cs
- SqlConnectionManager.cs
- UpdatePanelControlTrigger.cs
- SerialErrors.cs
- ControlCollection.cs
- SelectionGlyphBase.cs
- WizardStepBase.cs
- PropertyBuilder.cs
- SharedDp.cs
- WebBrowserSiteBase.cs
- nulltextcontainer.cs
- InternalSafeNativeMethods.cs
- DataGridViewCellConverter.cs
- StateItem.cs
- DataComponentNameHandler.cs
- RepeaterItemCollection.cs
- TransformerTypeCollection.cs
- SafeRightsManagementHandle.cs
- PackagePart.cs
- DataGridViewImageColumn.cs
- Identity.cs
- GridViewDeletedEventArgs.cs
- WorkflowOperationInvoker.cs
- QilReplaceVisitor.cs
- TypedColumnHandler.cs
- ModuleBuilder.cs
- X509ChainPolicy.cs
- ThreadWorkerController.cs
- FixedBufferAttribute.cs
- SourceSwitch.cs
- SessionStateSection.cs
- SelectionChangedEventArgs.cs
- ZipIOExtraFieldElement.cs
- ChannelServices.cs
- StaticFileHandler.cs
- UnmanagedMemoryStreamWrapper.cs
- ManipulationVelocities.cs
- CursorConverter.cs
- Encoder.cs
- NullReferenceException.cs
- TargetParameterCountException.cs
- WmlPageAdapter.cs
- ComboBoxDesigner.cs
- SqlSelectStatement.cs
- entitydatasourceentitysetnameconverter.cs
- HttpProfileBase.cs
- LambdaCompiler.Binary.cs
- ModifierKeysConverter.cs
- PageCodeDomTreeGenerator.cs
- CodeObject.cs
- TimeSpanStorage.cs
- DataControlImageButton.cs
- SecurityContext.cs
- CategoryGridEntry.cs
- SpnegoTokenProvider.cs
- ComponentDispatcher.cs
- BCryptNative.cs
- StreamAsIStream.cs
- MonitorWrapper.cs
- XamlStream.cs
- Border.cs
- HtmlContainerControl.cs
- WebPartTransformerCollection.cs
- CreateParams.cs
- Table.cs
- SettingsPropertyNotFoundException.cs
- XmlJsonWriter.cs
- SectionVisual.cs