public override void Run(InnerProgram program) { ////string test = @"Z:\Test\Classification2\Data\t95_r285_q954_test.txt"; ////string source = @"Z:\Test\Classification2\Data\Gerber_test.txt"; ////string truth = @"Z:\Test\Classification2\Data\t95_r285_q954_truth.txt"; ////string truth = @"Z:\Test\Classification2\Data\Gerber_truth.txt"; PointsOfInterestClassifier classifier = null; program.Test(classifier, this.Source, this.Truth); }
static void Main(string[] args) { Callback myCb = new Callback(cb); IntPtr pMyCb = Marshal.GetFunctionPointerForDelegate <Callback>(myCb); InnerProgram innerPg = new InnerProgram(); ThisCallback myInnerCb = new ThisCallback(innerPg.cb); IntPtr pMyInnerCb = Marshal.GetFunctionPointerForDelegate <ThisCallback>(myInnerCb); Stopwatch sw = new Stopwatch(); sw.Start(); visit(pMyCb); sw.Stop(); Console.WriteLine("Elapsed={0}", sw.Elapsed); }
public static int Main(string[] args) { InnerProgram program = new InnerProgram(); return(program.Run(args)); }
public abstract void Run(InnerProgram program);