Exemplo n.º 1
0
 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");
     }
 }
Exemplo n.º 2
0
 public static void Accept(InBetween target, IBetweenVisitor visitor)
 {
     visitor.Visit(target);
 }