Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Linq / Parallel / Enumerables / OrderedParallelQuery.cs / 1305376 / OrderedParallelQuery.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // OrderedParallelQuery.cs // //[....] // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System; using System.Collections.Generic; using System.Text; using System.Linq.Parallel; using System.Diagnostics.Contracts; namespace System.Linq { ////// Represents a sorted, parallel sequence. /// public class OrderedParallelQuery: ParallelQuery { private QueryOperator m_sortOp; internal OrderedParallelQuery(QueryOperator sortOp) :base(sortOp.SpecifiedQuerySettings) { m_sortOp = sortOp; Contract.Assert(sortOp is IOrderedEnumerable ); } internal QueryOperator SortOperator { get { return m_sortOp; } } internal IOrderedEnumerable OrderedEnumerable { get { return (IOrderedEnumerable )m_sortOp; } } /// /// Returns an enumerator that iterates through the sequence. /// ///An enumerator that iterates through the sequence. public override IEnumeratorGetEnumerator() { return m_sortOp.GetEnumerator(); } } } // 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
- Point3DAnimation.cs
- SiteMapPath.cs
- SessionEndingEventArgs.cs
- elementinformation.cs
- HttpApplication.cs
- FormViewUpdatedEventArgs.cs
- UInt64Storage.cs
- Drawing.cs
- SmtpCommands.cs
- ThreadExceptionDialog.cs
- XmlName.cs
- SQLRoleProvider.cs
- ParallelTimeline.cs
- CommunicationException.cs
- SystemIPv6InterfaceProperties.cs
- ObjectIDGenerator.cs
- IsolatedStoragePermission.cs
- InitializationEventAttribute.cs
- SwitchLevelAttribute.cs
- SqlWebEventProvider.cs
- UniqueIdentifierService.cs
- IntSecurity.cs
- Encoder.cs
- MaskedTextBox.cs
- AutomationAttributeInfo.cs
- DocumentXPathNavigator.cs
- QuaternionRotation3D.cs
- Point.cs
- ConnectionManagementSection.cs
- HandoffBehavior.cs
- EncodingNLS.cs
- QuarticEase.cs
- ImageBrush.cs
- GridViewSelectEventArgs.cs
- GorillaCodec.cs
- PriorityRange.cs
- TemplateBamlTreeBuilder.cs
- PasswordDeriveBytes.cs
- RuleRefElement.cs
- PackageRelationshipCollection.cs
- EdmScalarPropertyAttribute.cs
- TaskHelper.cs
- SharedMemory.cs
- TextTreeText.cs
- XmlAnyElementAttribute.cs
- StrokeNodeData.cs
- XmlSchemaNotation.cs
- LinkLabelLinkClickedEvent.cs
- MsmqHostedTransportManager.cs
- Viewport3DVisual.cs
- FixedSOMFixedBlock.cs
- PropertyGridView.cs
- XmlSchemaFacet.cs
- AuthenticatedStream.cs
- MulticastDelegate.cs
- FlowThrottle.cs
- PropertyItemInternal.cs
- DictionarySectionHandler.cs
- SelectionProviderWrapper.cs
- ObsoleteAttribute.cs
- ParallelEnumerable.cs
- ConfigurationLockCollection.cs
- CodeGeneratorOptions.cs
- DeviceContexts.cs
- ColumnCollection.cs
- TextRangeEditTables.cs
- ServiceContractViewControl.Designer.cs
- Effect.cs
- Matrix3D.cs
- UserControl.cs
- TextRunCacheImp.cs
- WebHttpElement.cs
- DbCommandDefinition.cs
- AsyncContentLoadedEventArgs.cs
- OrthographicCamera.cs
- TraceHandler.cs
- HtmlProps.cs
- EventArgs.cs
- RadioButton.cs
- PeerContact.cs
- WebPartConnectionsCloseVerb.cs
- RSACryptoServiceProvider.cs
- Rotation3DAnimationUsingKeyFrames.cs
- LineBreak.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ParameterReplacerVisitor.cs
- RsaSecurityToken.cs
- ScrollContentPresenter.cs
- IRCollection.cs
- PreservationFileReader.cs
- _LazyAsyncResult.cs
- SQLBinary.cs
- GZipDecoder.cs
- WindowsImpersonationContext.cs
- DispatchChannelSink.cs
- CodeSnippetStatement.cs
- WebPartTracker.cs
- KerberosSecurityTokenProvider.cs
- Pen.cs
- XmlSchemaComplexType.cs