示例#1
0
 public IProp <string> GetSuggestionAt(int index)
 {
     return(SuggestionsCount.Transform(count => index < count ? menu[index].Text.Get() : null));
 }
示例#2
0
 public static IProp <decimal> Currency(this IProp <string> property)
 {
     return(property.Transform(new CurrencyTransformation()));
 }
示例#3
0
 public static IProp <bool> Boolean(this IProp <string> property)
 {
     return(property.Transform(new BooleanTransformation()));
 }
示例#4
0
 public static IProp <int> Integer(this IProp <string> property)
 {
     return(property.Transform(new IntegerTransformation()));
 }
示例#5
0
 public static IProp <TNew> Then <T, TNew>(this IProp <T> prop, Func <IProp <TNew> > then)
 {
     return(prop.Transform(x => then().Get()));
 }