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