Created
October 30, 2013 18:55
-
-
Save mrcnkoba/7238049 to your computer and use it in GitHub Desktop.
relfeksja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace SimplifyVisitor | |
{ | |
using System.Reflection; | |
public abstract class VisitorBase | |
{ | |
public void Dispatch(Node node) | |
{ | |
this.GetType().InvokeMember("Visit", BindingFlags.NonPublic | BindingFlags.InvokeMethod | BindingFlags.Instance, null, this, new object[] { node }); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment