Say I have an Interface like this in a project called \"Interface\":
public interface TestInterface
{
string Operation();
}
and class which
you can achieve the behavior you have described via using IOC. Unity is a dependency injection container which allows to create instances without manually creating instances.
For instance, if you were to register your class and interface to unity, you would directly use the interface;
TestInterface i = Container.Resolve();