Can I create instance of plain c# class via VContainer without registering it? #661
Unanswered
Severskiys
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For monobehaviour i can use - container.InjectGameObject(gameObject). But if i need plain c# class instance: i register it first (builder.Register()), then resolve (await container and var instance = container.Resolve()).
Can i get similar result with only one operation? For situations when i definitely do not need that instance as dependency for any other class.
Beta Was this translation helpful? Give feedback.
All reactions