title: Get the value of the enum that I used as parameter in my function
body: <p>For example:</p>
  
  <pre><code>Enum parameter1Choices
   choice1
   choice2
  End Enum
  
  Function sampleFunction(parameter1 as parameter1Choices)
   return parameter1
  End Function
  </code></pre>
  
  <p>So if I use the above function like this</p>
  
  <pre><code>sampleFunction(parameter1Choices.choice1)
  </code></pre>
  
  <p>I am expecting that it will return <code>choice1</code> as <code>string</code></p>
  
  <p>I've read <a href="https://stackoverflow.com/questions/483794/convert-enum-to-string">this</a> and it says that I should use <code>Enum.GetName</code>, some said <code>.ToString</code>. How do I use that?</p>