title: List<MyClass> as datasource for DropDownList?
body: <p>I have a simple Class with ID and Name on it which I would like to link to a DropDownList but it seems that <code>myDropDownList.DataTextField = "Name";</code> and <code>myDropDownList.DataValueField = "ID";</code> are not accessible or available.</p>
  
  <p><strong>UPDATE: I am using winforms</strong></p>
  
  <pre><code>public class Test
  {
      public int ID { get; set; }
      public string Name { get; set; }
  }
  
  List&lt;Test&gt; myList = new List&lt;Test&gt;()
  {
      // bla bla bla some entries bla bla bla you got the point.
  };
  myDropDownList.DataSource = myList;
  </code></pre>
  
  <p>I know I could override ToString but that would not help me with the value of each entry on the list.</p>
  
  <p><strong>Are there any other options to print the Name on the dropdownlist while having another property as the value (ie: printing Name while having the selected value or item as the ID) ?</strong></p>