コード例 #1
0
        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");
            }
        }
コード例 #2
0
        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");
            }
        }