示例#1
0
        internal CollectionQueryOfQueriesImpl(TImmutableQueryRole immutableQuery, CollectionState <TValue> state)
            : base(immutableQuery)
        {
            ArgumentValidator.ValidateNotNull("State", state);

            this._state = state;
        }
示例#2
0
 internal CollectionMutableImpl(TCollectionQuery cq, CollectionState <TValue> state)
 {
     ArgumentValidator.ValidateNotNull("Collection query", cq);
     ArgumentValidator.ValidateNotNull("State", state);
     this._cq       = cq;
     this._state    = state;
     this._addition = new CollectionAdditionOnlyImpl <TValue, TCollectionQuery>(this);
 }
示例#3
0
        internal DictionaryWithRolesState(IDictionary <TKey, TValue> dictionary)
            : base(dictionary)
        {
            this.dictionary = dictionary;
            // Keys
            this.keys = new CollectionQueryImpl <TKey>(new CollectionState <TKey>(this.dictionary.Keys));

            // Values
            CollectionState <TValue>          valuesState = new CollectionState <TValue>(this.dictionary.Values);
            CollectionQuery <TValueImmutable> valuesIQ    = new CollectionImmutableQueryImpl <TValue, TValueQuery, TValueImmutable>(valuesState);

            this.values = new CollectionQueryOfMutablesImpl <CollectionQueryOfQueries <CollectionQuery <TValueImmutable>, TValueQuery, TValueImmutable>, CollectionQuery <TValueImmutable>, TValue, TValueQuery, TValueImmutable>(valuesIQ, new CollectionQueryOfQueriesImpl <CollectionQuery <TValueImmutable>, TValue, TValueQuery, TValueImmutable>(valuesIQ, valuesState), valuesState);
        }
示例#4
0
        internal CollectionImmutableQueryImpl(CollectionState <TValue> state)
        {
            ArgumentValidator.ValidateNotNull("State", state);

            this._state = state;
        }
示例#5
0
        internal CollectionQueryOfMutablesImpl(TImmutableQueryRole immutableQuery, TQueryOfQueriesRole cmq, CollectionState <TValue> state)
            : base(state)
        {
            ArgumentValidator.ValidateNotNull("Collection query of queries", cmq);
            ArgumentValidator.ValidateNotNull("Immutable query", immutableQuery);

            this._iq  = immutableQuery;
            this._cmq = cmq;
        }
示例#6
0
 internal CollectionWithRolesImpl(TMutableQueryRole mutableQuery, CollectionState <TValue> state)
     : base(mutableQuery, state)
 {
 }