container
container copied to clipboard
Provide explanation when InjectionParameter(object value) throws with `null`
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