Пример #1
0
        static void Main(string[] args)
        {
            NumberVisitor nv = new NumberVisitor();
            INumber       n  = new MyInt();

            n.visit(nv);
            Console.ReadLine();
        }
Пример #2
0
 public void onMyInt(MyInt MI)
 {
     Console.WriteLine("Found int");
 }