Optional parameters with dependency injection
Is it possible to have an optional parameter for a constructor with dependency injection. I know that dependency injection usually it implies it is a required dependency, but for example if the only dependency is an
EDIT: Changed
ILogger, then I don't really care if one was registered or not.EDIT: Changed
ILogger<Test> to be nullable