public void Remove(string strategyName) { if (AllStrategies_.ContainsKey(strategyName)) { AllStrategies_.Remove(strategyName); } else { } }
public IFinanceStrategy GetStrategy(string strategyName) { if (AllStrategies_.ContainsKey(strategyName)) { return(AllStrategies_[strategyName]); } else { return(null); } }
public void AddStrategy(IFinanceStrategy strategy) { AllStrategies_.Add(strategy.Name, strategy); }