You need to create a lambda - i.e.
var lambda = Expression.Lambda<Func<float,int>>(body, param);
Func<float,int> method = lambda.Compile();
int v = method(1.0); // test
where "body" is your expression tree (taking a float, returning an int) involving the ParameterExpression
param.
You might also find this and this helpful.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…