About IOC, I read below definition & registering interface
which really I am not able to make out
We don’t need to include our own IOC container, FreshMvvm comes with a IOC container built-in. It’s using TinyIOC underneath, but with different naming to avoid conflicts.
Interface rgistration with FreshIOC, If you see this code, In starting of application making this implementaion
public App()
{
InitializeComponent();
//Interface rgistration with FreshIOC
FreshIOC.Container.Register<IContactRepository, ContactRepository>();
FreshIOC.Container.Register<IValidator, ContactValidator>();
//var mainPage = FreshPageModelResolver.ResolvePageModel<AddContactPageModel>();
//MainPage = new FreshNavigationContainer(mainPage);
}
Why do we need registering interface, If not registering than what would be real implementation of it? Is there any advantages of implementing this principle. This article I am following.