title: Convert comma string list of int to enum and back
body: <p>I have the following enum type defined:</p>
  
  <pre><code>public enum Level
  {
  
      [XmlEnum("1")] ReadLevel = 1,
      [XmlEnum("2")] WriteLevel = 2, 
  
  }
  </code></pre>
  
  <p>I also have a list defined which has the type of this enum </p>
  
  <pre><code>public List&lt;Level&gt; MyList
  </code></pre>
  
  <p>I want to store the list as a comma seperated string with the numbers and read it back and use the enum levels in conditional statements.</p>
  
  <p>The set method I have defined, but how do I markup the get method? Currently</p>
  
  <pre><code> get
   {
      return string.Join(",", MyList);
   }
  </code></pre>
  
  <p>returns me the text of the enum (like ReadLevel, WriteLevel)</p>