public override object Calculate(IContext context) { if (Name == "max") return context.GetMaxOf(fArguments[0]); else throw new Exception("Undefined function: " + this); }