The answer depends on what you do outside the skeleton code provided. The important thing is that the information your code needs when it acts in the list items later.
CheckedListBox works just like a ListBox . The displayed text is the result of each .ToString() element.
If the lines work, add the display name text.
If you need more information stored for each element, add an .Add() override to your class and a .Add() full element.
If this is not an option, create a small display shell:
public class PlatypusDisplayWrapper { public Platypus {get; set;} public override string ToString() { return this.Platypus.Name; } }
source share