DrSensor / DrSensor/BatchDI

Use union type when it's ready

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
C#
Stars
6
Forks
1
PR merge metrics
No merged PRs in 30d

Description

To reduce the number of overload function and avoid dynamic type like in like in [here](https://github.com/DrSensor/BatchDI/blob/master/Framework/AspNetCore/IServiceCollectionExtensions.cs#L8-L67), it's best to use union type feature like in [Typescript](https://www.typescriptlang.org/docs/handbook/advanced-types.html) when [it's ready](https://github.com/dotnet/csharplang/issues/399).

Using union type open possibility to use `Invoke` instead of `DynamicInvoke` which can cause [performance boost](https://stackoverflow.com/a/12858434/5221998).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.