{"id":331,"date":"2018-10-04T15:46:47","date_gmt":"2018-10-04T15:46:47","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=331"},"modified":"2022-02-17T06:24:14","modified_gmt":"2022-02-17T06:24:14","slug":"is-inaccessible-due-to-its-protection-level","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/issues\/is-inaccessible-due-to-its-protection-level","title":{"rendered":"&#8220;is inaccessible due to its protection level&#8221;"},"content":{"rendered":"<p>\n\t&quot;is inaccessible due to its protection level&quot; error message\n<\/p>\n<p>\n\tHave you used &quot;public&quot; when creating the class and the constructor method the&nbsp;class you are accessing?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&quot;is inaccessible due to its protection level&quot; error message Have you used &quot;public&quot; when creating the class and the constructor method the&nbsp;class you are accessing?<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[],"class_list":["post-331","post","type-post","status-publish","format-standard","hentry","category-issues"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/331\/revisions\/332"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}