{"id":379,"date":"2019-02-14T20:12:45","date_gmt":"2019-02-14T20:12:45","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=379"},"modified":"2022-02-17T06:24:14","modified_gmt":"2022-02-17T06:24:14","slug":"enum","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/memory\/enum","title":{"rendered":"enum"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">Create the enumerated list and an object<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>    public enum SettingValues\n    {\n        SettingValue1,\n        SettingValue2,\n        SettingValue3,\n        Unknown\n    }\n\n    public SettingValues MySettingValue;<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Use it<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>\tMySettingValue = SettingValues.SettingValue2;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Create the enumerated list and an object Use it<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-379","post","type-post","status-publish","format-standard","hentry","category-memory"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/379","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=379"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":380,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/379\/revisions\/380"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}