Interface and Implementation in .Net

2 days ago 3
ARTICLE AD BOX

So, I am learning .Net c# and there is a practice to create interfaces and implementations. I was making a web api and I am confused how to manage namespaces.

For example: I am using repository pattern and have multiple interfaces and their implementations.

So, interfaces should have a separate namespace like myproject.repositories.interfaces and myproject.repositories.implementation to avoid tight coupling when using namespaces and getting irrelevant code in a file and making file larger.

Read Entire Article