public Object Convert(Object[] values, Type targetType, Object parameter, CultureInfo culture) { if (values != null && values.Length > 0 && values[0] is Func<Object[], Int32>) { var evaluationFunction = values[0] as Func<Object[], Int32>; var functionArguments = values.Skip(1).Take(values.Length - 1).ToArray(); var value = evaluationFunction(functionArguments); return value; } return 0; }