static void Main(string[] args) { NumberVisitor nv = new NumberVisitor(); INumber n = new MyInt(); n.visit(nv); Console.ReadLine(); }
public void onMyInt(MyInt MI) { Console.WriteLine("Found int"); }