{"type":"rich","blog_title":"PG\u65e5\u8a8c","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2014%2F07%2F29%2F010007\" title=\"\u3010C#\u3011Proxy\u30d1\u30bf\u30fc\u30f3\u3092\u5b9f\u88c5\u3059\u308b - PG\u65e5\u8a8c\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C#","\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3"],"author_url":"https://blog.hatena.ne.jp/Takachan/","blog_url":"https://takap-tech.com/","title":"\u3010C#\u3011Proxy\u30d1\u30bf\u30fc\u30f3\u3092\u5b9f\u88c5\u3059\u308b","height":"190","width":"100%","published":"2014-07-29 01:00:07","author_name":"Takachan","url":"https://takap-tech.com/entry/2014/07/29/010007","image_url":null,"version":"1.0","description":"Proxy \u30d1\u30bf\u30fc\u30f3\u3067 Proxy \u3068 RealSubject \u304c\u7b49\u4fa1\u3067\u4ea4\u63db\u53ef\u80fd\u3068\u3044\u3046\u4e8b\u3092\u5fd8\u308c\u3066\u5909\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u305f\u306e\u3067\u518d\u78ba\u8a8d\u3067\u3059\u3002\u4ee5\u4e0b C# \u306e\u5b9f\u88c5\u4f8b\u3067\u3059\u3002 // \u5171\u901a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5b9a\u7fa9 public interface IProxy { string Foo(string message); } // \u30d7\u30ed\u30ad\u30b7\u3058\u3083\u306a\u3044\u307b\u3046 public class RealSubject : IProxy { public string Foo(string message) { return message + message; } } // \u30d7\u30ed\u30ad\u30b7\u306e\u307b\u3046 public class Proxy :\u2026"}