Skip to content

Allow for the parameters of a factory Create() method to use the parameters Type only #1

@DaveRMaltby

Description

@DaveRMaltby

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions