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); }
protected void SetCompositeCtorArgs(ref Object[] args, CollectionAdditionOnly <CompositeProperty> properties, CollectionAdditionOnly <CompositeEvent> events) { if (args == null) { args = new Object[COMPOSITE_CTOR_FIRST_ADDITIONAL_PARAM_IDX]; } args[0] = this; args[1] = properties; args[2] = events; for (Int32 idx = COMPOSITE_CTOR_FIRST_ADDITIONAL_PARAM_IDX; idx < args.Length; ++idx) { args[idx] = null; } }