Esempio n. 1
0
 public static IRule <IParserResult> ImpliesItemItem <T>(
     this IConstraintsProviderContext <T> cpc,
     string itemPropertyName1,
     string itemPropertyName2)
     where T : IConfiguration
 {
     return(new Implies <IParserResult>(
                cpc.ItemIsSet(itemPropertyName1),
                cpc.ItemIsSet(itemPropertyName2)));
 }
Esempio n. 2
0
 public static IRule <IParserResult> NotItem <T>(
     this IConstraintsProviderContext <T> cpc,
     string itemPropertyName)
     where T : IConfiguration
 {
     return(new Not <IParserResult>(cpc.ItemIsSet(itemPropertyName)));
 }
Esempio n. 3
0
 public static IRule <IParserResult> ImpliesItemArgument <T>(
     this IConstraintsProviderContext <T> cpc,
     string itemPropertyName,
     string argumentPropertyName)
     where T : IConfiguration
 {
     return(new Implies <IParserResult>(
                cpc.ItemIsSet(itemPropertyName),
                cpc.ArgumentIsSet(argumentPropertyName)));
 }