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
- VisualTreeHelper.cs
- ToolStripActionList.cs
- Keywords.cs
- TagMapCollection.cs
- Camera.cs
- ClientType.cs
- IsolatedStorageFileStream.cs
- ResizingMessageFilter.cs
- CodeObject.cs
- XmlLangPropertyAttribute.cs
- Clause.cs
- TraceUtility.cs
- PageWrapper.cs
- LinkTarget.cs
- Pair.cs
- WarningException.cs
- EntityContainerEmitter.cs
- EmptyCollection.cs
- ImageSource.cs
- ExternalCalls.cs
- WizardPanel.cs
- HttpApplication.cs
- DeleteBookmarkScope.cs
- UrlAuthorizationModule.cs
- ClickablePoint.cs
- PermissionSetTriple.cs
- MergeFailedEvent.cs
- LOSFormatter.cs
- DataGridViewSelectedRowCollection.cs
- ListViewCancelEventArgs.cs
- Reference.cs
- IsolatedStorageFilePermission.cs
- GridView.cs
- DetailsViewRowCollection.cs
- SQLDateTime.cs
- RSAPKCS1SignatureFormatter.cs
- XhtmlTextWriter.cs
- ProjectionRewriter.cs
- ListenerElementsCollection.cs
- SQLMembershipProvider.cs
- CfgSemanticTag.cs
- basecomparevalidator.cs
- DbProviderFactory.cs
- SymDocumentType.cs
- AuthenticationModuleElement.cs
- WmlValidatorAdapter.cs
- Page.cs
- SqlBulkCopy.cs
- ContextMenuStrip.cs
- UnsafeNativeMethods.cs
- HintTextMaxWidthConverter.cs
- TextBoxRenderer.cs
- AsyncOperation.cs
- CatalogPartCollection.cs
- LinqDataSource.cs
- PrintSystemException.cs
- SmiEventSink.cs
- NestedContainer.cs
- Transform3D.cs
- ipaddressinformationcollection.cs
- Pointer.cs
- DirectoryObjectSecurity.cs
- DesignerAdRotatorAdapter.cs
- NameValueConfigurationElement.cs
- QueryableDataSource.cs
- MobileControlsSectionHandler.cs
- AutomationElement.cs
- DataTableTypeConverter.cs
- TCPListener.cs
- QueryCacheEntry.cs
- LambdaCompiler.Statements.cs
- DynamicObjectAccessor.cs
- StateMachineSubscription.cs
- QuadraticBezierSegment.cs
- WebPartHeaderCloseVerb.cs
- WebFormDesignerActionService.cs
- ItemCheckedEvent.cs
- ListManagerBindingsCollection.cs
- SamlAuthorityBinding.cs
- EdmFunction.cs
- ArgumentOutOfRangeException.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- UnsupportedPolicyOptionsException.cs
- GridViewDesigner.cs
- SystemThemeKey.cs
- UnorderedHashRepartitionStream.cs
- RegisteredHiddenField.cs
- SimpleApplicationHost.cs
- CommandBindingCollection.cs
- AnnotationComponentManager.cs
- StreamAsIStream.cs
- SspiHelper.cs
- DetailsViewDeletedEventArgs.cs
- WebPartEditorOkVerb.cs
- _emptywebproxy.cs
- RootProfilePropertySettingsCollection.cs
- SafeHandle.cs
- SaveCardRequest.cs
- PerspectiveCamera.cs
- WebScriptClientGenerator.cs