コード例 #1
0
 /// <summary>
 /// Binds one or more static inputs using implicit lambda syntax.
 /// </summary>
 /// <param name="template">The target template.</param>
 /// <param name="definitions">The lambdas or other methods that define the static inputs. The parameter names must match input labels.</param>
 /// <returns></returns>
 public static FluTePrototype BindStatic(this FluTePrototype template, params Func <string, object>[] definitions)
 {
     foreach (var definition in definitions)
     {
         var name     = definition.Method.GetParameters().First().Name;
         var localDef = definition;
         template = template.BindStatic(name, () => localDef(name));
     }
     return(template);
 }
コード例 #2
0
 public TemplateFinallyClause(FluTePrototype next)
 {
     innerNext = next;
 }
コード例 #3
0
 public TokenForClause(FluTePrototype template, string token)
 {
     inner      = template;
     this.token = token;
 }