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