I am just new to C# and trying to debug through a code during my project. At so many places i can see
ServiceContainer.Resolve<MyClass>
I just want to know if it will return the same object every time or it will create a new object of MyClass every time its get called ?.
i have two classes classA and classB. Placed in namespace A and B respectively. Namespace A has dependency on B but i need the object of classA in classB.I can't create the dependency of B in A(Circular dependency). How can i create object of ClassA in ClassB ?. I hope i am clear