示例#1
0
文件: express.cs 项目: 0xCM/arrows
 /// <summary>
 /// Creates an expression from a function delegate of arity 1
 /// </summary>
 /// <typeparam name="X">The function operand type</typeparam>
 /// <typeparam name="Y">The function return type</typeparam>
 /// <param name="f">The source delegate</param>
 public static Expression <Func <X, Y> > func <X, Y>(Func <X, Y> f)
 => FuncExpression.make(f);
示例#2
0
文件: express.cs 项目: 0xCM/arrows
 /// <summary>
 /// Creates an expression from an emitter
 /// </summary>
 /// <typeparam name="T">The emission type</typeparam>
 /// <param name="f">The emitter</param>
 public static Expression <Func <T> > func <T>(Func <T> f)
 => FuncExpression.make(f);