{"id":891,"date":"2017-02-06T01:51:22","date_gmt":"2017-02-05T16:51:22","guid":{"rendered":"http:\/\/okamurax.com\/?p=891"},"modified":"2020-05-05T01:04:12","modified_gmt":"2020-05-04T16:04:12","slug":"c-prototype","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=891","title":{"rendered":"C# Prototype"},"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            ConcreatePrototype c1 = new ConcreatePrototype(\"name\");\r\n            ConcreatePrototype c2 = (ConcreatePrototype)c1.CreateClone();\r\n        }\r\n    }\r\n\r\n    \/* Prototype \r\n    \u8907\u88fd\u3092\u4f5c\u6210\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u7528\u610f\u3059\u308b\u3002*\/\r\n\r\n    public interface Prototype\r\n    {\r\n        Prototype CreateClone();\r\n    }\r\n\r\n    public class ConcreatePrototype : Prototype\r\n    {\r\n        private string name;\r\n\r\n        public ConcreatePrototype() { }\r\n\r\n        public ConcreatePrototype(string name)\r\n        {\r\n            this.name = name;\r\n        }\r\n\r\n        public Prototype CreateClone()\r\n        {\r\n            ConcreatePrototype c = new ConcreatePrototype();\r\n            c.name = this.name;\r\n            return c;\r\n        }\r\n\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>namespace ConsoleApplication1 { class Program { static void Main(string[] args) { ConcreatePrototype c1 = new  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=891\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;C# Prototype&#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-891","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\/891","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=891"}],"version-history":[{"count":1,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/891\/revisions"}],"predecessor-version":[{"id":892,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/891\/revisions\/892"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}