示例#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");
 }