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)); }
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)); }
internal ListQueryOfMutablesImpl(ListQuery <TValueImmutable> immutableQuery, ListQueryOfQueries <TValueQuery, TValueImmutable> cmq, ListState <TValue> state) : base(immutableQuery, cmq, state) { this._state = state; }
internal ListProxyQueryImpl(ListState <TValue> state) : base(state) { }
internal ListWithRolesImpl(ListQueryOfMutables <TValue, TValueQuery, TValueImmutable> mutableQuery, ListState <TValue> state) : base(mutableQuery, state) { this._state = state; }
internal ListProxyImpl(ListProxyQuery <TValue> cq, ListState <TValue> state) : base(cq, state) { this._state = state; }
internal ListQueryImpl(ListState <TValueImmutable> state) : base(state) { this._state = state; }