public UsesContainerMutableImpl(UsesContainerState state, UsesContainerQuery query) { ArgumentValidator.ValidateNotNull("State", state); ArgumentValidator.ValidateNotNull("Query role", query); this._state = state; this._query = query; }
public static UsesContainerMutable CopyOf(UsesContainerQuery other) { UsesContainerState state = new UsesContainerState(other.Parent); UsesContainerMutable result = new UsesContainerMutableImpl(state, new UsesContainerQueryImpl(state)); foreach (KeyValuePair <String, Object> kvp in other.ThisNamedObjects) { result.UseWithName(kvp.Key, kvp.Value); } result.Use(other.ThisUnnamedObjects.ToArray()); return(result); }
public static UsesContainerMutable CreateWithParent(UsesContainerQuery parent) { UsesContainerState state = new UsesContainerState(parent); return(new UsesContainerMutableImpl(state, new UsesContainerQueryImpl(state))); }
public UsesContainerQueryImpl(UsesContainerState state) { ArgumentValidator.ValidateNotNull("State", state); this._state = state; }