示例#1
0
        public virtual ListProxy <TValue> NewListProxy <TValue>(IList <TValue> list = null)
        {
            list = list ?? new List <TValue>();
            var state = new ListState <TValue>(list);

            return(new ListProxyImpl <TValue>(new ListProxyQueryImpl <TValue>(state), state));
        }
示例#2
0
        public virtual ListWithRoles <TValue, TValueQuery, TValueImmutable> NewList <TValue, TValueQuery, TValueImmutable>(IList <TValue> listToUse = null)
            where TValue : Mutable <TValueQuery, TValueImmutable>
            where TValueQuery : MutableQuery <TValueImmutable>
        {
            listToUse = listToUse ?? new List <TValue>();
            var state  = new ListState <TValue>(listToUse);
            var listIQ = new ListImmutableQueryImpl <TValue, TValueQuery, TValueImmutable>(state);

            return(new ListWithRolesImpl <TValue, TValueQuery, TValueImmutable>(new ListQueryOfMutablesImpl <TValue, TValueQuery, TValueImmutable>(listIQ, new ListQueryOfQueriesImpl <TValue, TValueQuery, TValueImmutable>(listIQ, state), state), state));
        }
示例#3
0
 internal ListQueryOfMutablesImpl(ListQuery <TValueImmutable> immutableQuery, ListQueryOfQueries <TValueQuery, TValueImmutable> cmq, ListState <TValue> state)
     : base(immutableQuery, cmq, state)
 {
     this._state = state;
 }
示例#4
0
 internal ListProxyQueryImpl(ListState <TValue> state)
     : base(state)
 {
 }
示例#5
0
 internal ListWithRolesImpl(ListQueryOfMutables <TValue, TValueQuery, TValueImmutable> mutableQuery, ListState <TValue> state)
     : base(mutableQuery, state)
 {
     this._state = state;
 }
示例#6
0
 internal ListProxyImpl(ListProxyQuery <TValue> cq, ListState <TValue> state)
     : base(cq, state)
 {
     this._state = state;
 }
示例#7
0
 internal ListQueryImpl(ListState <TValueImmutable> state)
     : base(state)
 {
     this._state = state;
 }