Is your feature request related to a problem? Please describe.
I am referring to the following file Factory.cs.
I would like to understand if there is a particular reason why the concrete type CsvConfiguration is present in the signatures of the methods of this class.
Describe the solution you'd like
Couldn't the concrete type be replaced by the reference interface?
For example, The following method could become
//NOW
public virtual IParser CreateParser(TextReader reader, Configuration.CsvConfiguration configuration)
{
return new CsvParser(reader, configuration);
}
//AFTER
public virtual IParser CreateParser(TextReader reader, IParserConfiguration configuration)
{
return new CsvParser(reader, configuration);
}
I make this request in order to improve the use of this class and enable a more effective dependency injection.
Is your feature request related to a problem? Please describe.
I am referring to the following file Factory.cs. I would like to understand if there is a particular reason why the concrete type CsvConfiguration is present in the signatures of the methods of this class.
Describe the solution you'd like
Couldn't the concrete type be replaced by the reference interface? For example, The following method could become
I make this request in order to improve the use of this class and enable a more effective dependency injection.