Creation of Instance with List #389
Unanswered
bspautz1969
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Wrap the injected list in a new one then add anything to it. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good Day!
I have a dependency in a created instance of a class. This dependency is of the type IList .
It is going to created correctly.
However, I cannot add anything to this list in the instance created.
I always get the error "Collection was of a fixed size."
I got it through the normal constructor creation as well as through the Register_with_instance_factory_method.
Do you have a tip for me?
Beta Was this translation helpful? Give feedback.
All reactions