This repository was archived by the owner on Oct 20, 2023. It is now read-only.
This repository was archived by the owner on Oct 20, 2023. It is now read-only.
GetInstance<T>() should return non-nullable T #148
Open
Description
Describe the bug
Method GetInstance<T?>()
may return nullable type but it never be happen because exception will be thrown if unable to resolve it.
Expected behavior
Method GetInstance<T>
should accept T
as generic parameter and return T
type without nullable.
MethodGetInstanceOrDefault<T?>
may accept T?
as generic parameter and return T?
with nullable type (return null
if it's not resolved).