Exemplo n.º 1
0
 public static FormBodyBuilder Add <TKey, TValue>(this FormBodyBuilder This, bool condition, TKey key, Func <TValue> value)
 {
     if (condition)
     {
         This.Add(key, value());
     }
     return(This);
 }
Exemplo n.º 2
0
 public static FormBodyBuilder Add <TKey, TValue>(this FormBodyBuilder This, Func <bool> predicate, TKey key, Func <TValue> value)
 {
     return(This.Add(predicate(), key, value));
 }