public override void SingleOutputUpdate(double data) { if (_callee.FieldNames.Length <= 1) { _callee.SingleOutputUpdate(data); _caller.SingleOutputUpdate(_callee.Value); } else { throw new InvalidOperationException( "callee has multiple outputs, and caller can't handle it"); } }
public override double SingleOutputUpdate(double data) { double calleeResult; if (_callee.FieldNames.Length <= 1) { calleeResult = _callee.SingleOutputUpdate(data); return(_caller.SingleOutputUpdate(calleeResult)); } else { throw new InvalidOperationException( "callee has multiple outputs, and caller can't handle it"); } }