{"id":54,"date":"2014-07-28T11:19:40","date_gmt":"2014-07-28T11:19:40","guid":{"rendered":"http:\/\/mairwa.com\/wordpress\/?p=54"},"modified":"2014-07-28T11:19:40","modified_gmt":"2014-07-28T11:19:40","slug":"enum-and-enumerable-data","status":"publish","type":"post","link":"http:\/\/mairwa.com\/wordpress\/?p=54","title":{"rendered":"Enum and Enumerable data"},"content":{"rendered":"<p>An enum is a custom data type of Name\/Value pair.An enumeration is a class or structure that implements .net interface named Ienumerable.<\/p>\n<p>Typically, this interface is implemented on collection classes, as well as the System.Array class<\/p>\n<p align=\"LEFT\">\/\/ Compile-time error! 999 is too big for a byte!<\/p>\n<p align=\"LEFT\">enum EmpType : byte<\/p>\n<p align=\"LEFT\">{<\/p>\n<p align=\"LEFT\">Manager = 10,<\/p>\n<p align=\"LEFT\">Grunt = 1,<\/p>\n<p align=\"LEFT\">Contractor = 100,<\/p>\n<p align=\"LEFT\">VicePresident = 999<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family:TheSansMonoConNormal;font-size:xx-small;\"><span style=\"font-family:TheSansMonoConNormal;font-size:xx-small;\">\u00a0<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">An enum is a custom data type of Name\/Value pair.An enumeration is a class or structure that implements .net interface named Ienumerable. Typically, this interface is implemented on collection classes, as well as the System.Array class \/\/ Compile-time error! 999 is too big for a byte! enum EmpType : byte { Manager = 10, Grunt = 1, Contractor = 100,&hellip; <a href=\"http:\/\/mairwa.com\/wordpress\/?p=54\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,7,11],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-c-vb","category-c","category-oop","xfolkentry"],"_links":{"self":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54"}],"version-history":[{"count":0,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions"}],"wp:attachment":[{"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mairwa.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}