Beispiel #1
0
 internal DictionaryQueryOfMutablesImpl(DictionaryQuery <TKey, TValueImmutable> immutableQuery, DictionaryQueryOfQueries <TKey, TValueQuery, TValueImmutable> cmq, DictionaryWithRolesState <TKey, TValue, TValueQuery, TValueImmutable> state)
     : base(state)
 {
     ArgumentValidator.ValidateNotNull("Immutable query", immutableQuery);
     this._state = state;
     this._cmq   = cmq;
     this._iq    = immutableQuery;
 }
Beispiel #2
0
        public virtual DictionaryWithRoles <TKey, TValue, TValueQuery, TValueImmutable> NewDictionary <TKey, TValue, TValueQuery, TValueImmutable>(IDictionary <TKey, TValue> dictionary = null)
            where TValue : Mutable <TValueQuery, TValueImmutable>
            where TValueQuery : API.MutableQuery <TValueImmutable>
        {
            dictionary = dictionary ?? new Dictionary <TKey, TValue>();
            var state = new DictionaryWithRolesState <TKey, TValue, TValueQuery, TValueImmutable>(dictionary);
            var dicIQ = new DictionaryImmutableQueryImpl <TKey, TValue, TValueQuery, TValueImmutable>(state);

            return(new DictionaryWithRolesImpl <TKey, TValue, TValueQuery, TValueImmutable>(new DictionaryQueryOfMutablesImpl <TKey, TValue, TValueQuery, TValueImmutable>(dicIQ, new DictionaryQueryOfQueriesImpl <TKey, TValue, TValueQuery, TValueImmutable>(dicIQ, state), state), state));
        }
Beispiel #3
0
 internal DictionaryWithRolesImpl(DictionaryQueryOfMutables <TKey, TValue, TValueQuery, TValueImmutable> mutableQuery, DictionaryWithRolesState <TKey, TValue, TValueQuery, TValueImmutable> state)
     : base(mutableQuery, state)
 {
     this._state = state;
 }
Beispiel #4
0
 internal DictionaryImmutableQueryImpl(DictionaryWithRolesState <TKey, TValue, TValueQuery, TValueImmutable> state)
 {
     ArgumentValidator.ValidateNotNull("State", state);
     this._state = state;
 }
Beispiel #5
0
 internal DictionaryQueryOfQueriesImpl(DictionaryQuery <TKey, TValueImmutable> immutableQuery, DictionaryWithRolesState <TKey, TValue, TValueQuery, TValueImmutable> state)
     : base(immutableQuery)
 {
     ArgumentValidator.ValidateNotNull("State", state);
     this._state = state;
 }