Before:
class C
{
private readonly IDisposable container;
public C()
{
this.container = ↓new Container<Foo>();
}
}
After:
class C
{
private readonly IDisposable container;
public C()
{
this.container = CreateContainer();
}
private static Container<Foo> CreateContainer()
{
return new Container<Foo>()
.Bind(x => new Foo(x.Get<Bar>()))
.Bind(() => new Bar());
}
}