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
- NavigationPropertyAccessor.cs
- CodeMethodReturnStatement.cs
- SEHException.cs
- RemoveFromCollection.cs
- SmiContext.cs
- CssStyleCollection.cs
- ZipQueryOperator.cs
- ProfileInfo.cs
- ChildTable.cs
- RawStylusSystemGestureInputReport.cs
- DeferredTextReference.cs
- DataControlFieldCollection.cs
- TextContainerChangeEventArgs.cs
- RegisteredDisposeScript.cs
- MouseGestureValueSerializer.cs
- SapiGrammar.cs
- ListBindingConverter.cs
- Utils.cs
- XmlAutoDetectWriter.cs
- QilXmlReader.cs
- _HeaderInfoTable.cs
- Size.cs
- Subset.cs
- ErrorStyle.cs
- TextDpi.cs
- XmlMessageFormatter.cs
- Message.cs
- Pair.cs
- XmlSchemaCompilationSettings.cs
- ReachSerializerAsync.cs
- WorkflowViewManager.cs
- InstanceLockLostException.cs
- SectionXmlInfo.cs
- SystemIPInterfaceStatistics.cs
- Material.cs
- PartialTrustVisibleAssemblyCollection.cs
- EmptyStringExpandableObjectConverter.cs
- TemplateEditingFrame.cs
- RowCache.cs
- AutoGeneratedFieldProperties.cs
- FormViewDeletedEventArgs.cs
- DataProtection.cs
- DBConcurrencyException.cs
- XmlElementList.cs
- Stack.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SpotLight.cs
- TagPrefixAttribute.cs
- FlowDocumentView.cs
- BaseDataBoundControl.cs
- MailMessageEventArgs.cs
- ASCIIEncoding.cs
- InfoCardPolicy.cs
- AdornerHitTestResult.cs
- BypassElementCollection.cs
- ScrollChrome.cs
- ThrowHelper.cs
- Brush.cs
- Vector3DCollectionConverter.cs
- DataServiceProviderMethods.cs
- StorageEntityContainerMapping.cs
- RuntimeResourceSet.cs
- FileCodeGroup.cs
- CryptographicAttribute.cs
- XmlSchemaIdentityConstraint.cs
- DataGridCaption.cs
- CallbackHandler.cs
- XmlValidatingReaderImpl.cs
- SqlTypeSystemProvider.cs
- PreservationFileReader.cs
- VirtualDirectoryMapping.cs
- Win32Native.cs
- MessageBox.cs
- DelayedRegex.cs
- Model3DGroup.cs
- FontSourceCollection.cs
- PopupControlService.cs
- PropertyTabAttribute.cs
- BinaryUtilClasses.cs
- ResourceContainer.cs
- IsolatedStorageFile.cs
- ObjectItemLoadingSessionData.cs
- HierarchicalDataSourceConverter.cs
- ListViewUpdatedEventArgs.cs
- ImportCatalogPart.cs
- TypeConverterHelper.cs
- RandomDelaySendsAsyncResult.cs
- IndexedString.cs
- UriTemplateHelpers.cs
- ConnectionProviderAttribute.cs
- FileNotFoundException.cs
- ClientRuntimeConfig.cs
- EntitySqlQueryCacheKey.cs
- WebServiceErrorEvent.cs
- _NetRes.cs
- PropertyCondition.cs
- ButtonBase.cs
- WebPartManagerInternals.cs
- DataGridViewSelectedRowCollection.cs
- InvalidateEvent.cs