This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Ability to create generic types with default containing type? #6626
Labels
You can continue the conversation there. Go to discussion →
Take a look at the following piece of code:
This usage of injecting generic interface with containing type is so common specially in asp.net core.
Is there any way to simplify this injection, like ILogger, IStringLocalizer or other forms.
This maybe oversimplification (since refactoring will correct usages of class names anyway), but it's overwhelming to type long class names over and over again.
This maybe a great addition for C# language. Please let me know what you think!
Thanks
The text was updated successfully, but these errors were encountered: