/// <summary> /// Evaluate from custom object /// </summary> /// <param name="customObject"></param> /// <returns>Return value</returns> public Value Evaluate(CustomObject customObject) { List<Value> values = new List<Value>(); foreach (var e in ExpressionList) { values.Add(new Evaluator(e).Evaluate()); } return customObject.InvokeMethod(Name, values.ToArray()); }
/// <summary> /// Execute the constructor to get a custom object /// </summary> /// <returns>Custom object</returns> public new CustomObject Execute() { CustomObject customObject = new CustomObject(null, ClassBlock.Name); CloneObjectRecursive(customObject, ClassBlock); return customObject; }