According to DIP, we should abstract the dependencies to interfaces—say, IReader and IWriter . Subsequently, the method can be rewritten as follows: void ...
確定! 回上一頁