Open ByronMayne opened 4 months ago
Whenever creating a type we use Ninject internally to resolve it. However as an enhancment we could default to just creating an new instance.
From:
public global::Foo.ExampleClass Create() { IParameter[] parameters = new IParameter[] { }; global::Foo.ExampleClass instance = m_resolutionRoot.Get<global::Foo.ExampleClass>(parameters); return instance; }
To:
public global::Foo.ExampleClass Create() { return new global::Foo.ExampleClass(); }
Whenever creating a type we use Ninject internally to resolve it. However as an enhancment we could default to just creating an new instance.
From:
To: