Skip to content

Throw exception when trying to register a closed generic type.#268

Merged
metoule merged 2 commits intodynamicexpresso:masterfrom
metoule:fix_264
Dec 1, 2022
Merged

Throw exception when trying to register a closed generic type.#268
metoule merged 2 commits intodynamicexpresso:masterfrom
metoule:fix_264

Conversation

@metoule
Copy link
Copy Markdown
Contributor

@metoule metoule commented Nov 27, 2022

This new exception will prevent users from trying to reference a closed generic type, and provide the proper type to register.

target.Reference(typeof(List<string>)); // throws 
target.Reference(typeof(List<>)); // doesn't throw

Fixes #264

@metoule metoule merged commit 86d57bd into dynamicexpresso:master Dec 1, 2022
@metoule metoule deleted the fix_264 branch December 1, 2022 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unknown identifier IDictionary

2 participants