If I use a IoC container and the strong implementation is instantiated at runtime, dunamically, which among the below initialization is a best practice?
var obj=FooIocContainer.Resolve<IInterface>();
or
IInterface obj=FooIoCContainer.Resolve<IInterface>();
Which one is better and why? Just being curious :)