static public BaseSolution CreateSolution(BaseSolution solutionDescription) { BaseSolution result = (BaseSolution)Activator.CreateInstance(solutionDescription.GetType()); result.Name = solutionDescription.Id; return(result); }
static public List <BaseAction> GetActionList(BaseSolution sln) { if (actionList == null) { GetActionList(); } List <BaseAction> result = new List <BaseAction>(); foreach (var x in actionList) { if (x.SupportedSolutionTypes.IndexOf(sln.GetType()) > -1) { result.Add(x); } } return(result); }