public ILearner GetLearner(int result) { ILearner learner = null; switch (result) { case 1: learner = new DownloadWinForm(); break; case 2: learner = new Threads(); break; case 3: learner = new ThreadSafety(); break; case 4: learner = new EasyPools(); break; case 5: learner = new SignalManualReset(); break; case 6: learner = new AsyncIO(); break; case 7: learner = new TPLDemo(); break; case 8: learner = new AsyncAndAwait(); break; case 9: learner = new ConcurrentQueueDemo(); break; case 10: learner = new ConcurrentDictionaryDemo(); break; case 11: learner = new ProduceConsumer(); break; default: learner = new DownloadWinForm(); break; } return(learner); }
public ILearner GetLearner(int result) { ILearner learner = null; switch (result) { case 1: learner = new ThreadSafety(); break; case 2: learner = new ThreadAffinityApp(); break; case 3: learner = new SignalAutoEvent(); break; case 4: learner = new TwoWaySignal(); break; case 5: learner = new SignalManualReset(); break; case 6: learner = new CountDown(); break; case 7: learner = new TPLIntro(); break; case 8: learner = new ParallelVsNormal(); break; case 9: learner = new Cancellation(); break; case 10: learner = new ContinuationWithState(); break; case 11: learner = new TaskCompletionSource(); break; case 12: learner = new PLINQIntro(); break; case 13: learner = new PLINQDegreeParallelism(); break; case 14: learner = new PLINQForAll(); break; case 15: learner = new PLINQMergeOptions(); break; case 16: learner = new TAPIntro(); break; default: learner = new ThreadSafety(); break; } return(learner); }