title: Convert string array to enum on the fly
body: <p>I am binding an <code>enum</code> to a property grid like this:</p>
  
  <pre><code>public enum myEnum
  {
      Ethernet,
      Wireless,
      Bluetooth
  }
  
  public class MyClass
  {
      public MyClass()
      {
          MyProperty = MyEnum.Wireless;
      }
  
      [DefaultValue(MyEnum.Wireless)]
      public MyEnum MyProperty { get; set; }
  }
  
  public Form1()
  {
      InitializeComponent();
      PropertyGrid pg = new PropertyGrid();
      pg.SelectedObject = new MyClass();
      pg.Dock = DockStyle.Fill;
      this.Controls.Add(pg);
  }
  </code></pre>
  
  <p>My problem: I get data on the fly when the program is running. I read the network adapter then store adapter names to <code>myArray</code> like this:</p>
  
  <pre><code>string[] myArray = new string[] { };
  myArray[0] = "Ethernet";
  myArray[1] = "Wireless";
  myArray[2] = "Bluetooth";
  </code></pre>
  
  <p>Is possible convert <code>myArray</code> to <code>myEnum</code> on the fly using c#? Thank You.</p>