πͺπππππππ π«πππππ ππππ (.NET)
In this we would learn about
- What is Circular Dependency
- Reasons causing the Circular Dependency
- How Error Looks Like
- Solution
β©πΎπππ ππ πͺπππππππ π«πππππ
ππππ?
Circular dependency is a relation between two entities (could be class, module or library)
Where first entity depends on second and second depends on first to work properly, kind of recursion.
β©πΉππππππ πππππππ πͺπππππππ π«πππππ
ππππ?
1) Library or Project
2) Classes or Interface (that is implementing some class eventually)
3) Methods
β©π¬ππππ πππππ ππππ
If any kind of circular dependency is happening in your application, you would see error like this.
π° ππππππππ ππππππππππ’ π ππ ππππππππ πππ πππ πππππππ ππ ππ’ππ.
β©πΊπππππππ
Its solution is to make those classes/methods/projects independent from one side , if you keep both dependent it will cause a non-ending recursive call.
If you like my work you can help me in growing through following ways