Beispiel #1
0
        private double operation(double f1, double f2)
        {
            switch (m_op)
            {
            case OPERATION.MIN:
                return(Math.Min(f1, f2));

            case OPERATION.SUM:
                return(f1 + f2);

            default:
                throw new Exception("Unknown operation '" + m_op.ToString() + "'!");
            }
        }