static void Main(string[] args)
        {
            NumberVisitor nv = new NumberVisitor();
            INumber       n  = new MyInt();

            n.visit(nv);
            Console.ReadLine();
        }
Exemple #2
0
 public void onMyInt(MyInt MI)
 {
     Console.WriteLine("Found int");
 }