[置顶] 抽象工厂模式 中遇到 Type type = Type.GetType(name, true);//在这部会抛出异常,这怎么解决呢?-->求解
摘要:
class Program { static void Main(string[] args) { string fruitName = Console.ReadLine(); IFruit myFruit; myFruit = FruitFactory.MakeFruit(fruitName); Console.ReadKey(); } } public interface IFruit { } public class Orange :... 阅读全文