如何隔離物件之間的相依性
摘要:
public interface IAccountDao{ string GetPassword(string id);}public interface IHash{ string GetHashResult(string password);}public class AccountDao : IAccountDao{ public string GetPassword(string id) { throw new NotImplementedException(); }}public class Hash : IHash{ public ... 阅读全文
posted @ 2013-12-17 09:27 backslash112 阅读(267) 评论(0) 推荐(0)
浙公网安备 33010602011771号