<p>I have an enum construct like this:</p>

<pre><code>public enum EnumDisplayStatus
{
    None    = 1,
    Visible = 2,
    Hidden  = 3,
    MarkedForDeletion = 4
}
</code></pre>

<p>In my database, the enumerations are referenced by value. My question is, how can I turn the number representation of the enum back to the string name. </p>

<p>For example, given <code>2</code> the result should be <code>Visible</code>.</p>

You can convert the
```
int
```
back to an enumeration member with a simple cast, and then call
```
ToString()
```
:
```
```
int value = GetValueFromDb();
var enumDisplayStatus = (EnumDisplayStatus)value;
string stringValue = enumDisplayStatus.ToString();
```
```