{"id":37,"date":"2016-02-10T21:00:21","date_gmt":"2016-02-10T21:00:21","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=37"},"modified":"2022-02-17T06:24:15","modified_gmt":"2022-02-17T06:24:15","slug":"include-in-c","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/include\/include-in-c","title":{"rendered":"Include in C#"},"content":{"rendered":"<p>\n\tC# doesn&#39;t use&nbsp;#include\n<\/p>\n<p>\n\tAll of the classes in all of the files are automatically available everywhere. &nbsp;If a class is created inside the same project&nbsp;namespace then it can be used everywhere. &nbsp;If it&#39;s in a different namespace you &#39;include&#39;&nbsp;it with the &quot;using&quot;&nbsp;keyword.\n<\/p>\n<p>\n\tThere&nbsp;is no replacement for a C++&nbsp;#include statement in C#. C# is an object-oriented language where code is organised into classes. You can use code from one class in another class depending on its visibility, and you can split the code from a single class across multiple source files using partial classes.&nbsp;\n<\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C# doesn&#39;t use&nbsp;#include All of the classes in all of the files are automatically available everywhere. &nbsp;If a class is created inside the same project&nbsp;namespace then it can be used everywhere. &nbsp;If it&#39;s in a different namespace you &#39;include&#39;&nbsp;it with the &quot;using&quot;&nbsp;keyword. There&nbsp;is no replacement for a C++&nbsp;#include statement in C#. C# is an object-oriented [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-include"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/37","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=37"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":51,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/37\/revisions\/51"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}