1
Vote

Max undefined?

description

I have defined alot of custom functions but I was hoping to also use some of the built in functions. Right now it seems that t'Max" is an invalid function. Any ideas on how to get it recognized? My function resolver looks like:
expression.EvaluateFunction += delegate(string name, FunctionArgs args)
{
        switch (name)
        {
.
.
.
            case "IsNull":
                args.Result = args.Parameters[0].Evaluate() == null;
                break;
.
.
.
. default:
                throw new Exception(string.Format("Invalid function name [{0}].", name));
        }  
}

comments