I'm trying to use an IOC container to create the initial object graph within my application.
I have a MainForm. This form depends on a MenuStrip, which depends on multiple MenuStripItems. Some MenuStripItems depend on the MainForm.
At the moment I setup all dependencies for constructor injection. Obviously, resolving the MainForm now results in a stack overflow, since the MenuStripItem dependencies of the MainForm try to resolve the Mainform, etc etc...
What's the best way to resolve this circular dependency?