我将尝试缩短此代码示例: public interface IThing { //… Stuff } public class Thing1 : IThing { } public class Thing2 : IThing { } public interface IThingView { ICollection ViewAll(); } public class ThingView : IThingView { ICollection ViewAll() { return new List(); } // There’s a big operation here } public interface IThingViewerFactory { public IThingView […]