<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Enums on InternetException</title><link>https://internetexception.com/tags/enums/</link><description>Recent content in Enums on InternetException</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 23 Feb 2020 13:50:20 +0100</lastBuildDate><atom:link href="https://internetexception.com/tags/enums/index.xml" rel="self" type="application/rss+xml"/><item><title>Safe cast string to enum</title><link>https://internetexception.com/2014/02/25/safe-cast-string-to-enum-2/</link><pubDate>Tue, 25 Feb 2014 23:49:00 +0100</pubDate><guid>https://internetexception.com/2014/02/25/safe-cast-string-to-enum-2/</guid><description>&lt;p&gt;In on of my projects I had make an interface between database and web service in C# code. One of problem I had to face was need to cast strings to enumerable types, because of simple fact that database have no idea what is an &amp;rsquo;enum&amp;rsquo;. Yes simplest mapping between an enumeration and database type is integer. It is simplest but in my idea not best. For example I really do not remember (or do not WANT to remember) what is the meaning of 4 integer value in case of package shipment status.&lt;/p&gt;</description></item></channel></rss>