public void SetContainer(ContainerToken <ActionTreeToken> container) { if (_container != null) { // TODO: create cutsom error throw new ArgumentException("Cannot set container multiple times"); } _container = container; }
public InstanceOutput(ContainerToken <ActionTreeToken> instance) { _instance = instance; }
// public override void Instantiate(params dynamic[] input) // { // OneArgumentCheck(typeof(ContainerToken<ActionTreeToken>), input); // // Value = new InstanceOutput(input[0]); // } public void Setup(ContainerToken <ActionTreeToken> container) { Value = new InstanceOutput(container); }
protected TypeToken(ContainerToken <ActionTreeToken> type) { _type = type; }