Exemple #1
0
 public SingleDependencyMatch([CanBeNull] ItemMatch usingMatch,
                              [CanBeNull] DependencyPattern dependencyPattern, [CanBeNull] ItemMatch usedMatch,
                              string representation) : base(representation)
 {
     UsingMatch        = usingMatch;
     DependencyPattern = dependencyPattern;
     UsedMatch         = usedMatch;
 }
Exemple #2
0
 public static bool IsMatch <TItem>(ItemMatch matchOrNull, AbstractItem <TItem> item) where TItem : AbstractItem <TItem>
 {
     return(matchOrNull == null || matchOrNull.Matches(item).Success);
 }