Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- ChildTable.cs
- SvcMapFile.cs
- ProcessProtocolHandler.cs
- HMACSHA1.cs
- DbConnectionPoolCounters.cs
- Paragraph.cs
- CacheChildrenQuery.cs
- IListConverters.cs
- AspNetHostingPermission.cs
- Cursor.cs
- CopyOnWriteList.cs
- StrongNamePublicKeyBlob.cs
- XmlSchemaComplexType.cs
- ProfessionalColorTable.cs
- XmlSerializer.cs
- LineServicesCallbacks.cs
- RsaSecurityKey.cs
- ObjectListField.cs
- ChooseAction.cs
- CachedPathData.cs
- LogPolicy.cs
- _NegoState.cs
- ConsoleKeyInfo.cs
- Substitution.cs
- GridSplitterAutomationPeer.cs
- CriticalHandle.cs
- CardSpaceException.cs
- BitmapEffectGroup.cs
- Primitive.cs
- BindingOperations.cs
- GridViewEditEventArgs.cs
- WebPartDisplayModeCollection.cs
- ContainerParagraph.cs
- RtType.cs
- ValueUnavailableException.cs
- StorageEntityContainerMapping.cs
- assertwrapper.cs
- ListItem.cs
- TypeListConverter.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- BooleanSwitch.cs
- ToolStripLabel.cs
- ScriptManager.cs
- GenerateScriptTypeAttribute.cs
- Environment.cs
- TrackingValidationObjectDictionary.cs
- ModuleBuilderData.cs
- SystemGatewayIPAddressInformation.cs
- BackEase.cs
- FontFamily.cs
- DataGridViewButtonCell.cs
- TileBrush.cs
- ViewManager.cs
- RightsManagementLicense.cs
- DataObjectSettingDataEventArgs.cs
- ClientFormsAuthenticationCredentials.cs
- Enum.cs
- EventTrigger.cs
- hwndwrapper.cs
- ChineseLunisolarCalendar.cs
- GroupByExpressionRewriter.cs
- LogicalExpressionEditor.cs
- DataGridViewCellPaintingEventArgs.cs
- PluralizationService.cs
- SpecialFolderEnumConverter.cs
- RelationalExpressions.cs
- CultureTableRecord.cs
- Matrix.cs
- XomlSerializationHelpers.cs
- SamlAdvice.cs
- ByteConverter.cs
- Soap12ProtocolImporter.cs
- IncrementalReadDecoders.cs
- CheckPair.cs
- LazyTextWriterCreator.cs
- MimeObjectFactory.cs
- BevelBitmapEffect.cs
- Link.cs
- DefaultPrintController.cs
- UInt32Converter.cs
- ExpressionVisitor.cs
- AuthenticateEventArgs.cs
- XmlAttributeProperties.cs
- OptionalColumn.cs
- TextParentUndoUnit.cs
- VirtualStackFrame.cs
- SystemUnicastIPAddressInformation.cs
- Trace.cs
- ParameterElement.cs
- StringSource.cs
- NameValueConfigurationElement.cs
- DebugView.cs
- EnumValAlphaComparer.cs
- DesignSurfaceCollection.cs
- TreeViewItem.cs
- ImageDrawing.cs
- WebPartMenuStyle.cs
- HelpFileFileNameEditor.cs
- xmlformatgeneratorstatics.cs
- ResourceManager.cs