1, use interfaces to decouple the dependencies (the most common approach).
2, possibly AOP (Aspect-oriented programming) if you component derives from MarshalByRefObject.
[Quote=引用 5 楼 gomoku 的回复:]
1, use interfaces to decouple the dependencies (the most common approach).
2, possibly AOP (Aspect-oriented programming) if you component derives from MarshalByRefObject.
[/Quote]
--------------------------------
1。不是很懂
2。不是基于这个的MarshalByRefObject