public CombineElement Concat(CombineElement element) { return(new CombineElement(Targets.Concat(element.Targets).ToList(), SideElements.Union(element.SideElements).ToList())); }
public bool CanConcat(CombineElement element) { return(element.Targets.Any(SideElements.Contains) || element.SideElements.Any(Targets.Concat(SideElements).Contains)); }