public Strategy LoadClassInstance() { Strategy strategy; string assembleType = GetStrategy(); Type type = Type.GetType(assembleType, true); strategy = (Strategy)Activator.CreateInstance(type); return strategy; }
public void SetStrategy() { this.strategy = LoadClassInstance(); }