You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The methods GetConstructorOrNull, GetSingleConstructorOrNull, and SingleConstructor return static constructors, causing e.g. an unexpected exception calling SingleConstructor on a type with a single instance constructor.
I will post a PR with tests and a suggested fix shortly.
The text was updated successfully, but these errors were encountered:
wjrogers
added a commit
to wjrogers/DryIoc
that referenced
this issue
Oct 4, 2019
…ods (#185)
* Add tests for ReflectionTools constructor methods
see #184
* Use Constructors(includeStatic: false) in GetConstructor() methods
Don't consider static constructors when searching for specific or single
constructors of a type.
fixes#184
…ods (dadhi#185)
* Add tests for ReflectionTools constructor methods
see dadhi#184
* Use Constructors(includeStatic: false) in GetConstructor() methods
Don't consider static constructors when searching for specific or single
constructors of a type.
fixesdadhi#184
The methods
GetConstructorOrNull
,GetSingleConstructorOrNull
, andSingleConstructor
return static constructors, causing e.g. an unexpected exception callingSingleConstructor
on a type with a single instance constructor.I will post a PR with tests and a suggested fix shortly.
The text was updated successfully, but these errors were encountered: