Пример #1
0
        public Strategy LoadClassInstance()
        {
            Strategy strategy;
            string assembleType = GetStrategy();

            Type type = Type.GetType(assembleType, true);
            strategy = (Strategy)Activator.CreateInstance(type);
            return strategy;
        }
Пример #2
0
 public void SetStrategy()
 {
     this.strategy = LoadClassInstance();
 }