C#依赖注入经常使用的几种方式

一、构造器注入 经过构造器进行依赖注入web public class MyClass { private IMyInterFace _myinterface; public MyClass (IMyInterFace myinterface) { this._myinterface = myinterface; } } 二、Sette
相关文章
相关标签/搜索