title: how enum is used in .NET
body: <p>How does enum work in .NET ?
  eg.</p>
  
  <pre><code>Enum eOpenMode
      Add = 1
      Edit = 2
  End Enum
  
  If LOpenMode = eOpenMode.Add Then
      rdoAddProject.Checked = True
  ElseIf LOpenMode = eOpenMode.Edit Then
      rdoEditProject.Checked = True
  </code></pre>
  
  <p>How does this gets compared by their value(1,2) or by its name (add,edit)  and what will be memory allocation scheme ?</p>