{"id":910,"date":"2017-02-09T00:26:04","date_gmt":"2017-02-08T15:26:04","guid":{"rendered":"http:\/\/okamurax.com\/?p=910"},"modified":"2020-05-05T01:03:41","modified_gmt":"2020-05-04T16:03:41","slug":"c-visitor","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=910","title":{"rendered":"C# Visitor"},"content":{"rendered":"<pre class=\"lang:c# decode:true  \">namespace ConsoleApplication1\r\n{\r\n    class Program\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n\r\n        }\r\n    }\r\n    \/* Visitor\r\n    \u8a2a\u554f\u8005\u3067\u3042\u308bVisitor\u306b\u51e6\u7406\u3092\u8a18\u8ff0\u3059\u308b\u3002\r\n    \u51e6\u7406\u5bfe\u8c61\u306fAcceptor\u3067Visitor\u3092\u53d7\u3051\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002 *\/\r\n\r\n    interface Visitor\r\n    {\r\n        void Visit(Acceptor acceptor);\r\n    }\r\n    class ConcreateVisitor : Visitor\r\n    {\r\n        public void Visit(Acceptor acceptor)\r\n        {\r\n\r\n        }\r\n    }\r\n\r\n    interface Acceptor\r\n    {\r\n        void Accept(Visitor visitor);\r\n    }\r\n\r\n    class ConcreateAcceptor: Acceptor\r\n    {\r\n        public void Accept(Visitor visitor)\r\n        {\r\n            visitor.Visit(this);\r\n        }\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>namespace ConsoleApplication1 { class Program { static void Main(string[] args) { } } \/* Visitor \u8a2a\u554f\u8005\u3067\u3042\u308bVisitor &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=910\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;C# Visitor&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9,144],"class_list":["post-910","post","type-post","status-publish","format-standard","hentry","category-1","tag-c-net","tag-144"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=910"}],"version-history":[{"count":1,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/910\/revisions"}],"predecessor-version":[{"id":911,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/910\/revisions\/911"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}