container icon indicating copy to clipboard operation
container copied to clipboard

Provide explanation when InjectionParameter(object value) throws with `null`

Open ENikS opened this issue 6 years ago • 0 comments

Description

InjectionParameter(object value) throws an ArgumentNullException exception when value is null

Problem

Any, including null values are allowed to be held by the parameter. Normally type is determined from the value but null does not allow proper discovery.

Solution

Exception should be thrown with error message suggesting that other constructor, the one with type: InjectionParameter(Type, object) should be used.

Impact

None

ENikS avatar May 29 '20 19:05 ENikS