Пример #1
0
            public ICommand Create(Type type)
            {
                if (type == typeof(CreatedByFactory))
                {
                    _instance = new CreatedByFactory("ctor!!");
                    return(_instance);
                }

                throw new ArgumentException($"Unknown command type: {type}");
            }
Пример #2
0
            public ICommand Create(Type type)
            {
                if (type == typeof(CreatedByFactory))
                {
                    _instance = new CreatedByFactory("ctor!!");
                    return _instance;
                }

                throw new ArgumentException($"Unknown command type: {type}");
            }