I can't help but say that I have written a framework. I can only say that they are a beginner with many years of programming experience ., Framework beginners
Many people in the blog Park published their own framework, curious, and click to read it.
I just want to say that is really not a framework.
I suggest that they take a closer look at how. net is designed and how code of some third-party frameworks is written.
Take familiar. from: using System; To: using System. web; then: using System. web. UI; now: using System. web. mvc;
Take the Data layer framework in. net, from: using System; To: using System. Data; to: using System. Data. SqlClient;
Now: using System. Data. Entity;
Let's take a look at third-party frameworks, such as the commonly used IoC framework: autofac. Let's take a look at its components as follows:
Api address: https://autofac.org/apidoc/
People with a little programming experience will find out the rules.
From this structure, we can clearly understand the components of a framework, the general functions of each component, and the dependency between each component, instead of writing a piece of code, it is called a framework.
For an object-oriented development language such as C #, a framework is mainly used to solve the code set of specific functions in some fields. Then, we need to abstract and encapsulate the functions in this field that you want to solve.
When interfaces are used, when abstract classes are used, and when static classes are used. This plays a vital role in the Framework extension, upgrade, and developer habits.