public MethodLoadHelperPittsburghClassifier() { string[] fileinit = Directory.GetFiles(MethodOfInitPath, "*.dll"); string[] fileTune = Directory.GetFiles(MethodsOfTunePath, "*.dll"); Parallel.ForEach(fileinit, tryLoadMethod); Parallel.ForEach(fileTune, tryLoadMethod); CompararerForMethods forSort = new CompararerForMethods(); instanceOfInit.Distinct(); instanceOfInit.Sort(forSort); instanceOfTune.Distinct(); instanceOfTune.Sort(forSort); GC.Collect(); }
public BaseMethodLoad(FuzzySystemRelisedList.TypeSystem TypeFS) { TypeFuzzySystem = TypeFS; string[] fileinit = Directory.GetFiles(MethodOfInitPath, "*.dll"); string[] fileTune = Directory.GetFiles(MethodsOfTunePath, "*.dll"); Parallel.ForEach(fileinit, tryLoadMethod); Parallel.ForEach(fileTune, tryLoadMethod); CompararerForMethods forSort = new CompararerForMethods(); instanceOfInit.Distinct(); instanceOfInit.Sort(forSort); instanceOfTune.Distinct(); instanceOfTune.Sort(forSort); GC.Collect(); }