示例#1
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);
        }
示例#2
0
 internal CollectionImmutableQueryDebugView(CollectionImmutableQueryImpl <TValue, TValueQuery, TValueImmutable> collection)
     : this((CollectionQuery <TValueImmutable>)collection)
 {
 }