{"id":869,"date":"2017-02-02T23:23:42","date_gmt":"2017-02-02T14:23:42","guid":{"rendered":"http:\/\/okamurax.com\/?p=869"},"modified":"2020-05-05T01:16:36","modified_gmt":"2020-05-04T16:16:36","slug":"c-singleton","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=869","title":{"rendered":"C# Singleton"},"content":{"rendered":"<pre class=\"lang:c# decode:true  \">using System;\r\n\r\nnamespace 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\r\n    \/* Singleton\r\n    \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c1\u3064\u3067\u3042\u308b\u3053\u3068\u3092\u4fdd\u8a3c *\/\r\n\r\n    public class Singleton\r\n    {\r\n        private static Singleton singleton = new Singleton();\r\n        private Singleton()\r\n        {\r\n\r\n        }\r\n        public static Singleton getInstance()\r\n        {\r\n            return singleton;\r\n        }\r\n    }\r\n\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { } } \/* Singlet &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=869\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;C# Singleton&#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-869","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\/869","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=869"}],"version-history":[{"count":1,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/869\/revisions"}],"predecessor-version":[{"id":870,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/869\/revisions\/870"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}