public void Visit(InBetween ckin) { if (ckin.StarNum <= ckin.CKnum && ckin.EndNum >= ckin.CKnum) { Console.WriteLine("Cknumber: " + ckin.CKnum + " InBetween: " + ckin.StarNum + "~" + ckin.EndNum + " True"); } else { Console.WriteLine("Cknumber: " + ckin.CKnum + " InBetween: " + ckin.StarNum + "~" + ckin.EndNum + " False"); } }
public static void Accept(InBetween target, IBetweenVisitor visitor) { visitor.Visit(target); }