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
- StrongTypingException.cs
- ManagedWndProcTracker.cs
- KeyboardDevice.cs
- AdCreatedEventArgs.cs
- EventLogConfiguration.cs
- FacetDescription.cs
- Validator.cs
- DataExpression.cs
- PerfService.cs
- HotSpotCollection.cs
- EnumValAlphaComparer.cs
- Conditional.cs
- WinFormsComponentEditor.cs
- OLEDB_Enum.cs
- DesignTimeTemplateParser.cs
- DocComment.cs
- CapabilitiesSection.cs
- MailBnfHelper.cs
- ZoneButton.cs
- DisplayInformation.cs
- WarningException.cs
- ObjectSet.cs
- DesignerTextWriter.cs
- EditorZone.cs
- SmtpNtlmAuthenticationModule.cs
- ServerValidateEventArgs.cs
- SmiContextFactory.cs
- LifetimeManager.cs
- ChineseLunisolarCalendar.cs
- TransactionProtocolConverter.cs
- hresults.cs
- ICollection.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- EntityDataSourceMemberPath.cs
- DataObject.cs
- RelatedCurrencyManager.cs
- MemberRelationshipService.cs
- GeometryHitTestResult.cs
- LongTypeConverter.cs
- BinaryReader.cs
- SqlFlattener.cs
- StatusBarAutomationPeer.cs
- ParameterSubsegment.cs
- TCPListener.cs
- DeclaredTypeElementCollection.cs
- OperandQuery.cs
- COAUTHINFO.cs
- XmlArrayItemAttributes.cs
- TimeBoundedCache.cs
- RoleManagerSection.cs
- TaiwanLunisolarCalendar.cs
- XmlStreamNodeWriter.cs
- _BaseOverlappedAsyncResult.cs
- Permission.cs
- FileVersion.cs
- XmlSiteMapProvider.cs
- UIHelper.cs
- TextRunCacheImp.cs
- InvalidEnumArgumentException.cs
- MappingSource.cs
- NavigationWindow.cs
- RootProfilePropertySettingsCollection.cs
- SynchronizedKeyedCollection.cs
- mediaeventshelper.cs
- SqlDataAdapter.cs
- ModelUIElement3D.cs
- SqlServices.cs
- XmlSchema.cs
- Nodes.cs
- AssemblyNameEqualityComparer.cs
- GlyphInfoList.cs
- Int32.cs
- SmiRequestExecutor.cs
- URL.cs
- GenericUriParser.cs
- ProviderConnectionPoint.cs
- MeasureItemEvent.cs
- HttpProfileGroupBase.cs
- DSGeneratorProblem.cs
- SchemaElementLookUpTableEnumerator.cs
- DocumentViewerBaseAutomationPeer.cs
- ToolStripButton.cs
- CompilationUtil.cs
- ValidateNames.cs
- _AutoWebProxyScriptHelper.cs
- WebEventCodes.cs
- UpdatePanel.cs
- QilInvoke.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- XmlReader.cs
- Button.cs
- ExceptionValidationRule.cs
- DiagnosticsConfiguration.cs
- BaseValidatorDesigner.cs
- FileRegion.cs
- MediaCommands.cs
- SqlFlattener.cs
- ItemsPresenter.cs
- CompModSwitches.cs
- wgx_render.cs