Currently when a factory's Create() method creates a concrete instance, the name of all the parameters in the Create() method must match names (and of course they must also be of the same data type) in the ctor of the contrete class.
This seems fragile over time. I was abstracting a factory interface to be generic in nature and hence I changed a parameter name in the Create method to be more abstract in nature. Didn't discover until runtime, the cause for the failure.
Currently when a factory's Create() method creates a concrete instance, the name of all the parameters in the Create() method must match names (and of course they must also be of the same data type) in the ctor of the contrete class.
This seems fragile over time. I was abstracting a factory interface to be generic in nature and hence I changed a parameter name in the Create method to be more abstract in nature. Didn't discover until runtime, the cause for the failure.