标签:castle
castle 构造器的参数假如是一个对象怎么注入呢
例如,有这么一个类: public class TextFileLog:ILog { private string target; private ILogFormatter format; public TextFileLog(string target, ILogFormatter format) { this.target = target; this……
05-07 立刻查看
例如,有这么一个类: public class TextFileLog:ILog { private string target; private ILogFormatter format; public TextFileLog(string target, ILogFormatter format) { this.target = target; this……