Exemplo n.º 1
0
            //---------------------------------------------------------------------------------------
            // Instantiates a new select-many enumerator. Notice that the right data source is an
            // enumera*BLE* not an enumera*TOR*. It is re-opened for every single element in the left
            // data source.
            //

            internal IndexedSelectManyQueryOperatorEnumerator(QueryOperatorEnumerator <TLeftInput, int> leftSource,
                                                              SelectManyQueryOperator <TLeftInput, TRightInput, TOutput> selectManyOperator,
                                                              CancellationToken cancellationToken)
            {
                Contract.Assert(leftSource != null);
                Contract.Assert(selectManyOperator != null);

                _leftSource         = leftSource;
                _selectManyOperator = selectManyOperator;
                _cancellationToken  = cancellationToken;
            }
            //---------------------------------------------------------------------------------------
            // Instantiates a new select-many enumerator. Notice that the right data source is an
            // enumera*BLE* not an enumera*TOR*. It is re-opened for every single element in the left
            // data source.
            //

            internal SelectManyQueryOperatorEnumerator(QueryOperatorEnumerator <TLeftInput, TLeftKey> leftSource,
                                                       SelectManyQueryOperator <TLeftInput, TRightInput, TOutput> selectManyOperator,
                                                       CancellationToken cancellationToken)
            {
                Debug.Assert(leftSource != null);
                Debug.Assert(selectManyOperator != null);

                _leftSource         = leftSource;
                _selectManyOperator = selectManyOperator;
                _cancellationToken  = cancellationToken;
            }
Exemplo n.º 3
0
 internal SelectManyQueryOperatorEnumerator(QueryOperatorEnumerator <TLeftInput, TLeftKey> leftSource, SelectManyQueryOperator <TLeftInput, TRightInput, TOutput> selectManyOperator, CancellationToken cancellationToken)
 {
     this.m_leftSource         = leftSource;
     this.m_selectManyOperator = selectManyOperator;
     this.m_cancellationToken  = cancellationToken;
 }