public ICommand Create(Type type) { if (type == typeof(CreatedByFactory)) { _instance = new CreatedByFactory("ctor!!"); return(_instance); } throw new ArgumentException($"Unknown command type: {type}"); }
public ICommand Create(Type type) { if (type == typeof(CreatedByFactory)) { _instance = new CreatedByFactory("ctor!!"); return _instance; } throw new ArgumentException($"Unknown command type: {type}"); }